ceph: reorganize __send_cap for less spinlock abuse
authorJeff Layton <jlayton@kernel.org>
Tue, 17 Mar 2020 12:47:31 +0000 (08:47 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 1 Jun 2020 11:22:51 +0000 (13:22 +0200)
commit0a454bdd501ad1aa30bb72e9581efa338ad6ce5c
tree3c4ac639ed50806c7858d132467370e02799d856
parent70c948206f0616c7e46130a26165b6a5d98bade4
ceph: reorganize __send_cap for less spinlock abuse

Get rid of the __releases annotation by breaking it up into two
functions: __prep_cap which is done under the spinlock and __send_cap
that is done outside it. Add new fields to cap_msg_args for the wake
boolean and old_xattr_buf pointer.

Nothing checks the return value from __send_cap, so make it void
return.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c