rbd: refactor rbd_wait_state_locked()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 4 Apr 2018 08:15:38 +0000 (10:15 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Apr 2018 07:38:40 +0000 (09:38 +0200)
commit2f18d46683cb3047c41229d57cf7c6e2ee48676f
treef02375c879d665840d4516a0d22a272d2f3cc030
parent60cc43fc888428bb2f18f08997432d426a243338
rbd: refactor rbd_wait_state_locked()

In preparation for lock_timeout option, make rbd_wait_state_locked()
return error codes.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c