From: Sage Weil Date: Fri, 23 Apr 2010 17:25:33 +0000 (-0700) Subject: ceph: fix lockless caps check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ff899da02cb674211858fcd919f8b4511a4423f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ceph: fix lockless caps check The __ variant requires caller to hold i_lock. Signed-off-by: Sage Weil --- diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 412593703d1e..4b42c2bb603f 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -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;