ceph: fix lockless caps check
The __ variant requires caller to hold i_lock. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
ea1409f961
commit
7ff899da02
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue