Skip to content

Commit

Permalink
ceph: num_ops is off by one in ceph_aio_retry_work()
Browse files Browse the repository at this point in the history
Two OSD op slots are allocated, but only one is ever used.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
idryomov committed Oct 22, 2018
1 parent 41a264e commit 61d2f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61d2f85

Please sign in to comment.