Re: [PATCH V3 04/12] kernfs: don't set dentry->d_fsdata

2017-06-19 Thread Tejun Heo
On Thu, Jun 15, 2017 at 11:17:12AM -0700, Shaohua Li wrote: > From: Shaohua Li > > When working on adding exportfs operations in kernfs, I found it's hard > to initialize dentry->d_fsdata in the exportfs operations. Looks there > is no way to do it without race condition. Look at the kernfs code

[PATCH V3 04/12] kernfs: don't set dentry->d_fsdata

2017-06-15 Thread Shaohua Li
From: Shaohua Li When working on adding exportfs operations in kernfs, I found it's hard to initialize dentry->d_fsdata in the exportfs operations. Looks there is no way to do it without race condition. Look at the kernfs code closely, there is no point to set dentry->d_fsdata. inode->i_private a