aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-10-11 16:15:38 +0200
committerIlya Dryomov <idryomov@gmail.com>2018-10-22 10:28:21 +0200
commit61d2f855042cfcce9b78fa10fe7cd2020598263b (patch)
tree02beda2837477e50ad9716fc4f1d7dc1abb8140f
parentlibceph: no need to call osd_req_opcode_valid() in osd_req_encode_op() (diff)
downloadlinux-dev-61d2f855042cfcce9b78fa10fe7cd2020598263b.tar.xz
linux-dev-61d2f855042cfcce9b78fa10fe7cd2020598263b.zip
ceph: num_ops is off by one in ceph_aio_retry_work()
Two OSD op slots are allocated, but only one is ever used. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
-rw-r--r--fs/ceph/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 213e7d98248a..0265f9ae0ab9 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -858,7 +858,7 @@ static void ceph_aio_retry_work(struct work_struct *work)
}
spin_unlock(&ci->i_ceph_lock);
- req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 2,
+ req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1,
false, GFP_NOFS);
if (!req) {
ret = -ENOMEM;