Re: [PATCH 03/22] fanotify: Move recalculation of inode / vfsmount mask under mark_mutex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 22, 2016 at 7:31 PM, Jan Kara <jack@xxxxxxx> wrote:
> On Thu 22-12-16 18:27:11, Amir Goldstein wrote:
>> On Thu, Dec 22, 2016 at 11:15 AM, Jan Kara <jack@xxxxxxx> wrote:
>> > Move recalculation of inode / vfsmount notification mask under
>> > group->mark_mutex of the mark which was modified. These are the only
>> > places where mask recalculation happens without mark being protected
>> > from detaching from inode / vfsmount which will cause issues with the
>> > following patches.
>> >
>>
>> What am I missing this time?
>>
>> dnotify_handle_event()
>>    dnotify_recalc_inode_mask()
>>       fsnotify_recalc_inode_mask() /* not under dnotify_group->mark_mutex */
>
> Dnotify uses mark->lock to protect recalculation of mask which also
> protects mark from being removed from the list.
>

Right. Thanks for clarifying.

Reviewed-by: Amir Goldstein <amir73il@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux