From: Ilya Dryomov Date: Thu, 19 Jun 2014 07:38:14 +0000 (+0400) Subject: rbd: add rbd_obj_watch_request_helper() helper X-Git-Tag: cleanup-for-v3.18~44^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb040aa03ce870b0eff21ee75f7f324cd8cabe03;p=pandora-kernel.git 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 Reviewed-by: Alex Elder --- Reading git-diff-tree failed