RCU is not safe enough to protect __d_lookup ?

2015-03-12 Thread Rock Lee
Hi, all: I am studying the dcache in VFS recently . I've found that hlist of dcache is already protected by RCU in __d_lookup.Is it necessary for the function -- d_lookup using sequence lock to protect the hlist again? struct dentry * d_lookup(struct dentry * parent, struct qstr * name){ stru

RCU is not safe enough to protect __d_lookup ?

2015-03-12 Thread Rock Lee
Hi, all: I am studying the dcache in VFS recently . I've found that hlist of dcache is already protected by RCU in __d_lookup.Is it necessary for the function -- d_lookup using sequence lock to protect the hlist again? struct dentry * d_lookup(struct dentry * parent, struct qstr * name){ stru