]> git.baikalelectronics.ru Git - kernel.git/commit
binderfs: drop lock in binderfs_binder_ctl_create
authorChristian Brauner <christian@brauner.io>
Mon, 21 Jan 2019 10:48:07 +0000 (11:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 11:25:53 +0000 (12:25 +0100)
commite8cbf4b7d39188d9ed31f6158ba8b63b85e92041
treee0afd0214cb6525f771e79c8488dccf11c85e92b
parent55f1239c3b46a28e31c5e5cdd8ed3de45da2acbf
binderfs: drop lock in binderfs_binder_ctl_create

The binderfs_binder_ctl_create() call is a no-op on subsequent calls and
the first call is done before we unlock the suberblock. Hence, there is no
need to take inode_lock() in there. Let's remove it.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binderfs.c