On 25/03/2022 17:47, Christoph Hellwig wrote: >> @@ -1692,7 +1692,7 @@ void shrink_dcache_for_umount(struct super_block *sb) >> { >> struct dentry *dentry; >> >> - 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.