From: Ilya Dryomov Date: Fri, 20 Jun 2014 14:29:20 +0000 (+0400) Subject: rbd: use rbd_obj_watch_request_helper() helper X-Git-Tag: cleanup-for-v3.18~44^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76756a51e27984692fe0affa564e89ee8d323e66;p=pandora-kernel.git rbd: use rbd_obj_watch_request_helper() helper Switch rbd_dev_header_{un,}watch_sync() to use the new helper and fix rbd_dev_header_unwatch_sync() to destroy watch_request structures before queuing watch-remove message while at it. This mistake slipped into commit b30a01f2a307 ("rbd: fix osd_request memory leak in __rbd_dev_header_watch_sync()") and could lead to "image still in use" errors on image removal. Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder --- Reading git-diff-tree failed