]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: combine rbd sync watch/unwatch functions
authorAlex Elder <elder@inktank.com>
Wed, 14 Nov 2012 03:11:15 +0000 (21:11 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 22:34:58 +0000 (16:34 -0600)
commitfa8a3434958d2b5325fe2a9b104a5a597c254eb5
treef8afc0441dcbb856b3c9d2df6f0c11e456aecaba
parente9079e440478be39199458eb9cd8d6c63d24e96f
rbd: combine rbd sync watch/unwatch functions

The rbd_req_sync_watch() and rbd_req_sync_unwatch() functions are
nearly identical.  Combine them into a single function with a flag
indicating whether a watch is to be initiated or torn down.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c