Re: [PATCH] fs/dcache: use write lock in the fallback instead of read lock

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

 



On Fri, Mar 25, 2022 at 05:48:43PM +0100, Niels Dossche wrote:
> >> -	WARN(down_read_trylock(&sb->s_umount), "s_umount should've been locked");
> >> +	WARN(down_write_trylock(&sb->s_umount), "s_umount should've been locked");
> > 
> > This really should be a lockdep_assert_held_write() instead.
> 
> That's probably a bit nicer indeed.
> I can write up a patch that does a lockdep_assert_held_write() if you want.

I would much prefer that.



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

  Powered by Linux