diff options
author | Sage Weil <sage@newdream.net> | 2010-04-23 10:25:33 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-03 10:49:25 -0700 |
commit | 7ff899da02cb674211858fcd919f8b4511a4423f (patch) | |
tree | a200faf72a5ff982a03287c65809d0c78ef11bfd /fs/ceph | |
parent | ea1409f96197c1bffe5d7d5bc967b3445edcc1fa (diff) | |
download | linux-stable-7ff899da02cb674211858fcd919f8b4511a4423f.tar.gz linux-stable-7ff899da02cb674211858fcd919f8b4511a4423f.tar.bz2 linux-stable-7ff899da02cb674211858fcd919f8b4511a4423f.zip |
ceph: fix lockless caps check
The __ variant requires caller to hold i_lock.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |