]> 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)
commit53fd755eec6d669a961eba9d2a2ed7ccc139aced
treee0afd0214cb6525f771e79c8488dccf11c85e92b
parentf8556c4e4c93a8fed28925008ef6b1aaf03296b0
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