Re: [PATCH 15/33] fsnotify: Remove useless list deletion and comment

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

 



On Wed, Mar 15, 2017 at 12:46 PM, Jan Kara <jack@xxxxxxx> wrote:
> After removing all the indirection it is clear that
>
> hlist_del_init_rcu(&mark->obj_list);
>
> in fsnotify_destroy_marks() is not needed as the mark gets removed from
> the list shortly afterwards in fsnotify_destroy_mark() ->
> fsnotify_detach_mark() -> fsnotify_detach_from_object(). Also there is
> no problem with mark being visible on object list while we call
> fsnotify_destroy_mark() as parallel destruction of marks from several
> places is properly handled (as mentioned in the comment in
> fsnotify_destroy_marks(). So just remove the list removal and also the
> stale comment.
>
> Signed-off-by: Jan Kara <jack@xxxxxxx>

Reviewed-by: Amir Goldstein <amir73il@xxxxxxxxx>



[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