Commit 7ff899da authored by Sage Weil's avatar Sage Weil

ceph: fix lockless caps check

The __ variant requires caller to hold i_lock.
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent ea1409f9
...@@ -509,7 +509,7 @@ static void writepages_finish(struct ceph_osd_request *req, ...@@ -509,7 +509,7 @@ static void writepages_finish(struct ceph_osd_request *req,
u64 bytes = 0; u64 bytes = 0;
struct ceph_client *client = ceph_inode_to_client(inode); struct ceph_client *client = ceph_inode_to_client(inode);
long writeback_stat; long writeback_stat;
unsigned issued = __ceph_caps_issued(ci, NULL); unsigned issued = ceph_caps_issued(ci);
/* parse reply */ /* parse reply */
replyhead = msg->front.iov_base; replyhead = msg->front.iov_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment