Re: [PATCH 09/25] fsnotify: Free fsnotify_mark_connector when there is no mark attached

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

 



On Wed, Feb 1, 2017 at 12:44 PM, Jan Kara <jack@xxxxxxx> wrote:
> Currently we free fsnotify_mark_connector structure only when inode /
> vfsmount is getting freed. This can however impose noticeable memory
> overhead when marks get attached to inodes only temporarily. So free the
> connector structure once the last mark is detached from the object.
> Since notification infrastructure can be working with the connector
> under the protection of fsnotify_mark_srcu, we have to be careful and
> free the fsnotify_mark_connector only after SRCU period passes.
>
> Signed-off-by: Jan Kara <jack@xxxxxxx>

you may re-add

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