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)
commit29ef1c8e16aed079ac09989d752e38d412b6e1a8
treee0afd0214cb6525f771e79c8488dccf11c85e92b
parent4198479524aeccaf53c3a4cc73784982535573fa
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