Peeling off dcache_lock
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · On Fri, 25 Jan 2002 11:44:11 +0530 Maneesh Soni <[email protected]> wrote:
Quoted 3 lines · Rusty Russell
Hi Maneesh!
Fantastic work! A couple of questions, and a trivial patch:
Hi Rusty,
Thanks for code review.
Hey, anything that wins 20% on (32-way) dbench is worth reading 8)
Quoted 8 lines
Quoted 5 lines
o Am I correct in asserting that you could change all the "
list_empty(dentry->dhash)" tests to
"dentry->d_vfs_flags&DCACHE_DEFERRED_FREE" tests, and hence change thelist_del_init()tolist_del()in unhash, and thus remove thed_nexthashfield altogether?I agree that
d_next_hashis a sort of hack and want to remove it. I think we have tried removing it in the way you are suggesting. But we never got a stable code. I will have to look at this some what more.
Hmm... I finally have a dual x86 box here, so I can play with this as well.
Quoted 3 lines
Quoted 2 lines
o
d_lookuplooks like it can return anDCACHE_DEFERRED_FREEdentry: this seems wrong: shouldn't it loop here?Actually
d_lookupwill fail if the found dentry hasDCACHE_DEFERRED_FREEset.
ACK. Sorry, my mistake.
Quoted 1 line
I will do all these corrections in the next version very soon.
I wouldn't say "corrections": your code is very nice. I'm looking forward to your next iteration!
Quoted 3 lines
Quoted 1 line
Any chance of you making it to http://linux.conf.au next month BTW?
Probably not as I am getting married next month ;-) and lots of shopping is still remaining ;-).
Oh, congratulations! Perhaps I shall have to find a conference in India then 8)
Thanks!
Rusty.
Signature · 1 line
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.