Skip to content

Commit

Permalink
ceph: fix lockless caps check
Browse files Browse the repository at this point in the history
The __ variant requires caller to hold i_lock.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed May 3, 2010
1 parent ea1409f commit 7ff899d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static void writepages_finish(struct ceph_osd_request *req,
u64 bytes = 0;
struct ceph_client *client = ceph_inode_to_client(inode);
long writeback_stat;
unsigned issued = __ceph_caps_issued(ci, NULL);
unsigned issued = ceph_caps_issued(ci);

/* parse reply */
replyhead = msg->front.iov_base;
Expand Down

0 comments on commit 7ff899d

Please sign in to comment.