diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2021-09-01 10:44:03 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-09-17 13:39:23 +0200 |
commit | 23ca067b3295d935835b71f743235f9e5ab31cc5 (patch) | |
tree | dcea78fbf821cd13819022f5732d38c48df25071 /fs/ksmbd/transport_tcp.c | |
parent | ipc: remove memcg accounting for sops objects in do_semtimedop() (diff) | |
download | linux-23ca067b3295d935835b71f743235f9e5ab31cc5.tar.xz linux-23ca067b3295d935835b71f743235f9e5ab31cc5.zip |
mm: Fully initialize invalidate_lock, amend lock class later
The function __init_rwsem() is not part of the official API, it just a helper
function used by init_rwsem().
Changing the lock's class and name should be done by using
lockdep_set_class_and_name() after the has been fully initialized. The overhead
of the additional class struct and setting it twice is negligible and it works
across all locks.
Fully initialize the lock with init_rwsem() and then set the custom class and
name for the lock.
Fixes: 730633f0b7f95 ("mm: Protect operations adding pages to page cache with invalidate_lock")
Link: https://lore.kernel.org/r/20210901084403.g4fezi23cixemlhh@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ksmbd/transport_tcp.c')
0 files changed, 0 insertions, 0 deletions