Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359638
b: refs/heads/master
c: cf81b60
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed Feb 14, 2013
1 parent 2062f25 commit 8dd0601
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 5ae9db81b45c2d95554c665043afffd5e9a7d5ac
refs/heads/master: cf81b60e4bbd4a1281fe2640f9c0c40fe3a85fdf
10 changes: 5 additions & 5 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ static int rbd_img_request_submit(struct rbd_img_request *img_request)
return 0;
}

static int rbd_obj_notify_ack_sync(struct rbd_device *rbd_dev,
static int rbd_obj_notify_ack(struct rbd_device *rbd_dev,
u64 ver, u64 notify_id)
{
struct rbd_obj_request *obj_request;
Expand All @@ -1809,11 +1809,11 @@ static int rbd_obj_notify_ack_sync(struct rbd_device *rbd_dev,
goto out;

osdc = &rbd_dev->rbd_client->client->osdc;
obj_request->callback = rbd_obj_request_put;
ret = rbd_obj_request_submit(osdc, obj_request);
if (!ret)
ret = rbd_obj_request_wait(obj_request);
out:
rbd_obj_request_put(obj_request);
if (ret)
rbd_obj_request_put(obj_request);

return ret;
}
Expand All @@ -1835,7 +1835,7 @@ static void rbd_watch_cb(u64 ver, u64 notify_id, u8 opcode, void *data)
rbd_warn(rbd_dev, "got notification but failed to "
" update snaps: %d\n", rc);

rbd_obj_notify_ack_sync(rbd_dev, hver, notify_id);
rbd_obj_notify_ack(rbd_dev, hver, notify_id);
}

/*
Expand Down

0 comments on commit 8dd0601

Please sign in to comment.