ceph: fix lockless caps check
authorSage Weil <sage@newdream.net>
Fri, 23 Apr 2010 17:25:33 +0000 (10:25 -0700)
committerSage Weil <sage@newdream.net>
Mon, 3 May 2010 17:49:25 +0000 (10:49 -0700)
The __ variant requires caller to hold i_lock.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/addr.c

index 4125937..4b42c2b 100644 (file)
@@ -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;