rbd: unregister linger in watch sync routine
authorAlex Elder <elder@inktank.com>
Fri, 25 Jan 2013 23:08:55 +0000 (17:08 -0600)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 02:29:09 +0000 (18:29 -0800)
commit6977c3f983b0d2b481a65b1fa3e85683fd1318af
tree8eaec1896170c886a488ade9c7a46cbaa415190b
parent9f20e02a53b944a54a35b9f0db1243cd64872f7d
rbd: unregister linger in watch sync routine

Move the code that unregisters an rbd device's lingering header
object watch request into rbd_dev_header_watch_sync(), so it
occurs in the same function that originally sets up that request.

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