ceph: num_ops is off by one in ceph_aio_retry_work()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 11 Oct 2018 14:15:38 +0000 (16:15 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 22 Oct 2018 08:28:21 +0000 (10:28 +0200)
Two OSD op slots are allocated, but only one is ever used.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c

index 213e7d9..0265f9a 100644 (file)
@@ -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;