Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359641
b: refs/heads/master
c: 6977c3f
h: refs/heads/master
i:
  359639: bcd64ab
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed Feb 14, 2013
1 parent 1833433 commit 6019ee3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f20e02a53b944a54a35b9f0db1243cd64872f7d
refs/heads/master: 6977c3f983b0d2b481a65b1fa3e85683fd1318af
10 changes: 4 additions & 6 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,10 @@ static int rbd_dev_header_watch_sync(struct rbd_device *rbd_dev, int start)
if (start) {
rbd_dev->watch_request = obj_request->osd_req;
ceph_osdc_set_request_linger(osdc, rbd_dev->watch_request);
} else {
ceph_osdc_unregister_linger_request(osdc,
rbd_dev->watch_request);
rbd_dev->watch_request = NULL;
}
ret = rbd_obj_request_submit(osdc, obj_request);
if (ret)
Expand Down Expand Up @@ -3995,12 +3999,6 @@ static void rbd_dev_release(struct device *dev)
{
struct rbd_device *rbd_dev = dev_to_rbd_dev(dev);

if (rbd_dev->watch_request) {
struct ceph_client *client = rbd_dev->rbd_client->client;

ceph_osdc_unregister_linger_request(&client->osdc,
rbd_dev->watch_request);
}
if (rbd_dev->watch_event)
rbd_dev_header_watch_sync(rbd_dev, 0);

Expand Down

0 comments on commit 6019ee3

Please sign in to comment.