]> git.baikalelectronics.ru Git - kernel.git/commit
kernfs: Introduce interface to access global kernfs_open_file_mutex.
authorImran Khan <imran.f.khan@oracle.com>
Wed, 15 Jun 2022 02:10:58 +0000 (12:10 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 14:46:15 +0000 (16:46 +0200)
commit2902e88b4a14b0698df20b5b5470ba69435c217e
tree2922922ef8acec7777333d1430e02989d9164445
parentaab43507e4d8047b0de2d7b1376ec15a733502a5
kernfs: Introduce interface to access global kernfs_open_file_mutex.

This allows to change underlying mutex locking, without needing to change
the users of the lock. For example next patch modifies this interface to
use hashed mutexes in place of a single global kernfs_open_file_mutex.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Imran Khan <imran.f.khan@oracle.com>
Link: https://lore.kernel.org/r/20220615021059.862643-4-imran.f.khan@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/file.c