projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41a264e
)
ceph: num_ops is off by one in ceph_aio_retry_work()
author
Ilya Dryomov
<idryomov@gmail.com>
Thu, 11 Oct 2018 14:15:38 +0000
(16:15 +0200)
committer
Ilya 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
patch
|
blob
|
history
diff --git
a/fs/ceph/file.c
b/fs/ceph/file.c
index
213e7d9
..
0265f9a
100644
(file)
--- 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;