diff options
author | Ilya Dryomov <[email protected]> | 2015-04-25 15:56:15 +0300 |
---|---|---|
committer | Sage Weil <[email protected]> | 2015-05-01 16:44:30 -0700 |
commit | 082a75dad84d79d1c15ea9e50f31cb4bb4fa7fd6 (patch) | |
tree | 7c077a6f71822034a746d7ee95ee109827106822 /tools/perf/util/trace-event-scripting.c | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) |
rbd: end I/O the entire obj_request on error
When we end I/O struct request with error, we need to pass
obj_request->length as @nr_bytes so that the entire obj_request worth
of bytes is completed. Otherwise block layer ends up confused and we
trip on
rbd_assert(more ^ (which == img_request->obj_request_count));
in rbd_img_obj_callback() due to more being true no matter what. We
already do it in most cases but we are missing some, in particular
those where we don't even get a chance to submit any obj_requests, due
to an early -ENOMEM for example.
A number of obj_request->xferred assignments seem to be redundant but
I haven't touched any of obj_request->xferred stuff to keep this small
and isolated.
Cc: Alex Elder <[email protected]>
Cc: [email protected] # 3.10+
Reported-by: Shawn Edwards <[email protected]>
Reviewed-by: Sage Weil <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions