Re: [PATCH] kernfs: fix locking around kernfs_ops->release() callback

2017-02-21 Thread Tejun Heo
On Sun, Feb 12, 2017 at 05:33:02AM +0900, Tejun Heo wrote: > The release callback may be called from two places - file release > operation and kernfs open file draining. kernfs_open_file->mutex is > used to synchronize the two callsites. This unfortunately leads to > possible circular locking bec

Re: [PATCH] kernfs: fix locking around kernfs_ops->release() callback

2017-02-13 Thread Greg Kroah-Hartman
On Mon, Feb 13, 2017 at 09:57:25AM -0800, Tony Lindgren wrote: > * Tejun Heo [170211 12:34]: > > The release callback may be called from two places - file release > > operation and kernfs open file draining. kernfs_open_file->mutex is > > used to synchronize the two callsites. This unfortunately

Re: [PATCH] kernfs: fix locking around kernfs_ops->release() callback

2017-02-13 Thread Tony Lindgren
* Tejun Heo [170211 12:34]: > The release callback may be called from two places - file release > operation and kernfs open file draining. kernfs_open_file->mutex is > used to synchronize the two callsites. This unfortunately leads to > possible circular locking because of->mutex is used to prot

[PATCH] kernfs: fix locking around kernfs_ops->release() callback

2017-02-11 Thread Tejun Heo
The release callback may be called from two places - file release operation and kernfs open file draining. kernfs_open_file->mutex is used to synchronize the two callsites. This unfortunately leads to possible circular locking because of->mutex is used to protect the usual kernfs operations which