OSDN Git Service

rbd: add rbd_obj_watch_request_helper() helper
authorIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 19 Jun 2014 07:38:14 +0000 (11:38 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 8 Jul 2014 11:08:45 +0000 (15:08 +0400)
commitbb040aa03ce870b0eff21ee75f7f324cd8cabe03
tree36e10430d0b453686a82853745bfe2d27da12b80
parent71c20a066f1a4ee1339db0efb58290fbb62e62f2
rbd: add rbd_obj_watch_request_helper() helper

In the past, rbd_dev_header_watch_sync() used to handle both watch and
unwatch requests and was entangled and leaky.  Commit b30a01f2a307
("rbd: fix osd_request memory leak in __rbd_dev_header_watch_sync()")
split it into two separate functions.  This commit cleanly abstracts
the common bits, relying on the fixed rbd_obj_request_wait().

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/block/rbd.c