rbd: make get_lock_owner_info() return a single locker or NULL
authorIlya Dryomov <idryomov@gmail.com>
Fri, 30 Jun 2023 11:52:13 +0000 (13:52 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 26 Jul 2023 13:08:08 +0000 (15:08 +0200)
commitf38cb9d9c2045dad16eead4a2e1aedfddd94603b
tree427fd3a242f6085f72275fd9b52e8473d54d8741
parent50164507f6b7b7ed85d8c3ac0266849fbd908db7
rbd: make get_lock_owner_info() return a single locker or NULL

Make the "num_lockers can be only 0 or 1" assumption explicit and
simplify the API by getting rid of output parameters in preparation
for calling get_lock_owner_info() twice before blocklisting.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
drivers/block/rbd.c