Skip to content

Commit 61d2f85

Browse files
committed
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>
1 parent 41a264e commit 61d2f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ static void ceph_aio_retry_work(struct work_struct *work)
858858
}
859859
spin_unlock(&ci->i_ceph_lock);
860860

861-
req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 2,
861+
req = ceph_osdc_alloc_request(orig_req->r_osdc, snapc, 1,
862862
false, GFP_NOFS);
863863
if (!req) {
864864
ret = -ENOMEM;

0 commit comments

Comments
 (0)