[LU-560] negative dentries not cached after open, even with MDS_INODELOCK_UPDATE on parent Created: 01/Aug/11  Updated: 16/Aug/11  Resolved: 16/Aug/11

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.1.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: Richard Henwood (Inactive)
Resolution: Fixed Votes: 0
Labels: dentry
Environment:

Linux 2.6.18-238.12.1.el5
Lustre 2.0.65


Attachments: File negative-dentry-not-cached.log     Text File stat-vs-open.txt    
Severity: 3
Rank (Obsolete): 4919

 Description   

Trying to open a non-existent file does not cause a negative dentry to be cached, even
when parent ctime is more than ctime_age_limit (10) seconds old, or even when MDS_INODELOCK_UPDATE is held.

To reproduce:

/usr/lib64/lustre/tests/llmount.sh
echo +dentry +inode +dlmtrace +vfstrace +rpctrace > /proc/sys/lnet/debug
lctl clear
mkdir /mnt/lustre/DDD
sleep 20 # Twice ctime_age_limit.
cat /mnt/lustre/DDD/XXX
cat /mnt/lustre/DDD/XXX
lctl dk negative-dentry-not-cached.log

Then negative-dentry-not-cached.log shows an LDLM_ENQUEUE being sent for each open.

Alternatively, stating a non-existent file will cache a negative dentry, but opens on other non-existent files in the same directory will not cache negative dentries, see stat-vs-open.txt.



 Comments   
Comment by John Hammond [ 01/Aug/11 ]

Please see http://review.whamcloud.com/#change,1173 for a patch.

Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » i686,server,el5,ofa #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Build Master (Inactive) [ 11/Aug/11 ]

Integrated in lustre-master » i686,client,el5,ofa #253
LU-560 Fixup intent status on ENOENT in mdt_intent_reint

Oleg Drokin : d29b83dace8382680ee2e9d03f7f94ca62301fa2
Files :

  • lustre/mdt/mdt_handler.c
Comment by Richard Henwood (Inactive) [ 16/Aug/11 ]

Patch landed on Master.

Generated at Sat Feb 10 01:08:14 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.