commit | bb040aa03ce870b0eff21ee75f7f324cd8cabe03 | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <ilya.dryomov@inktank.com> | Thu Jun 19 11:38:14 2014 +0400 |
committer | Ilya Dryomov <ilya.dryomov@inktank.com> | Tue Jul 08 15:08:45 2014 +0400 |
tree | 36e10430d0b453686a82853745bfe2d27da12b80 | |
parent | 71c20a066f1a4ee1339db0efb58290fbb62e62f2 [diff] |
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>