]> git.apps.os.sepia.ceph.com Git - ceph-client.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>
Wed, 28 Nov 2012 16:07:07 +0000 (10:07 -0600)
commit1fa5aa6172242e9cd1b58c34796ec31bb1b43444
treec1b917279dbb89a4f43129e00ea94f1a1beaaab5
parent540bb186d60cc068513aee41071a389c8ed2298a
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>
drivers/block/rbd.c