Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198074
b: refs/heads/master
c: 0f8605f
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed May 17, 2010
1 parent 40c8d40 commit 4997ba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 31e0cf8f6a1488b6ca69dcdceeaed107ecfd6463
refs/heads/master: 0f8605f2bde2c69737709765dfc574558ea35d4e
7 changes: 3 additions & 4 deletions trunk/fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1143,17 +1143,16 @@ static void send_cap_releases(struct ceph_mds_client *mdsc,
struct ceph_msg *msg;

dout("send_cap_releases mds%d\n", session->s_mds);
while (1) {
spin_lock(&session->s_cap_lock);
if (list_empty(&session->s_cap_releases_done))
break;
spin_lock(&session->s_cap_lock);
while (!list_empty(&session->s_cap_releases_done)) {
msg = list_first_entry(&session->s_cap_releases_done,
struct ceph_msg, list_head);
list_del_init(&msg->list_head);
spin_unlock(&session->s_cap_lock);
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
dout("send_cap_releases mds%d %p\n", session->s_mds, msg);
ceph_con_send(&session->s_con, msg);
spin_lock(&session->s_cap_lock);
}
spin_unlock(&session->s_cap_lock);
}
Expand Down

0 comments on commit 4997ba2

Please sign in to comment.