OSDN Git Service

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)
commit41448c614815965d1cdfa720df34257b84afbb9d
tree2922922ef8acec7777333d1430e02989d9164445
parentb8f35fa1188b84035c59d4842826c4e93a1b1c9f
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