Skip to contentSkip to conversation

kernel lock in dcache.c

DISCUSSION Mark Hemment 2 participants 2 messages Apr 28, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

d_move() in fs/dcache.c is checking the kernel lock is held
(switch_names() does the same, but is only called from d_move()).

My question is why?
I can't see what it is using the kernel lock to sync/protect against.

Anyone out there know?

Thanks,
Mark

#1 lore raw
Quoted 7 lines · Mark Hemment

Hi,

d_move() in fs/dcache.c is checking the kernel lock is held
(switch_names() does the same, but is only called from d_move()).

My question is why?
I can't see what it is using the kernel lock to sync/protect against.

Metric buttload of users of ->d_parent in the filesystems.