]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rbd: use rbd_obj_watch_request_helper() helper
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 20 Jun 2014 14:29:20 +0000 (18:29 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 8 Jul 2014 11:08:45 +0000 (15:08 +0400)
commit76756a51e27984692fe0affa564e89ee8d323e66
tree905f22e40bc4e2f7a95c8db69aac4d98feda068d
parentbb040aa03ce870b0eff21ee75f7f324cd8cabe03
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 <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/block/rbd.c