Ilya Dryomov
082a75dad8
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 <elder@linaro.org >
Cc: stable@vger.kernel.org # 3.10+
Reported-by: Shawn Edwards <lesser.evil@gmail.com >
Reviewed-by: Sage Weil <sage@redhat.com >
Signed-off-by: Ilya Dryomov <idryomov@gmail.com >
2015-05-01 16:44:30 -07:00
..
2015-04-26 13:56:35 -07:00
2015-04-02 10:03:55 +01:00
2015-03-01 18:43:51 -08:00
2015-04-16 13:53:32 -05:00
2015-03-10 13:34:53 -04:00
2015-04-26 17:22:07 -07:00
2015-04-17 15:50:54 -04:00
2015-05-01 16:44:30 -07:00
2015-04-09 10:42:18 +03:00
2015-04-22 09:18:17 -07:00
2015-04-21 09:42:58 -07:00
2015-04-22 09:20:15 -07:00
2015-04-24 08:23:45 -07:00
2015-04-15 23:02:24 +02:00
2015-04-22 09:03:30 -07:00
2015-04-26 13:51:05 -07:00
2015-03-31 13:17:15 +09:00
2015-04-24 09:49:37 -07:00
2015-04-21 14:47:16 +05:30
2015-03-20 17:50:07 +01:00
2015-04-21 09:42:58 -07:00
2015-03-03 21:16:48 -05:00
2015-04-22 09:18:17 -07:00
2015-04-22 09:04:39 -07:00
2015-04-27 10:35:15 +10:00
2015-04-14 18:25:15 -07:00
2015-04-05 14:45:27 +02:00
2015-04-03 16:20:12 +02:00
2015-04-17 09:03:55 -04:00
2015-04-21 09:42:58 -07:00
2015-04-26 17:44:09 -07:00
2015-04-17 15:32:07 -04:00
2015-04-14 20:21:54 -07:00
2015-04-14 09:50:27 -07:00
2015-04-26 17:22:07 -07:00
2015-04-26 13:36:02 -07:00
2015-04-26 17:47:46 -07:00
2015-04-24 08:23:45 -07:00
2015-04-15 09:00:47 -07:00
2015-04-18 08:22:10 -04:00
2015-04-22 10:55:06 -07:00
2015-04-07 13:25:14 +10:00
2015-03-17 11:12:01 +05:30
2015-04-03 16:15:30 +02:00
2015-04-24 09:28:01 -07:00
2015-04-26 09:56:08 -07:00
2015-04-22 09:18:17 -07:00
2015-04-17 09:04:09 -04:00
2015-04-26 13:36:02 -07:00
2015-04-21 09:42:58 -07:00
2015-04-24 09:49:37 -07:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-07 12:05:12 +02:00
2015-04-24 08:46:18 -07:00
2015-04-26 17:22:07 -07:00
2015-04-21 22:02:43 +02:00
2015-04-16 14:01:03 -05:00
2015-04-22 09:04:39 -07:00
2015-04-13 17:07:21 -07:00
2015-04-15 10:02:42 +02:00
2015-04-26 13:44:46 -07:00
2015-04-14 20:21:54 -07:00
2015-04-06 19:39:57 +02:00
2015-04-15 23:06:16 +02:00
2015-03-26 15:23:17 +11:00
2015-03-31 12:01:19 -04:00
2015-04-23 14:50:52 +02:00
2015-04-14 17:29:55 -07:00
2015-03-12 10:43:26 +02:00
2015-03-13 15:55:42 +10:30
2015-04-17 09:04:12 -04:00
2015-04-22 10:55:06 -07:00
2015-04-15 16:35:23 -07:00
2015-04-24 10:22:09 -07:00
2015-04-14 00:43:28 +02:00
2015-04-24 09:49:37 -07:00
2015-04-03 16:15:30 +02:00
2015-04-17 15:50:54 -04:00
2015-04-26 17:22:07 -07:00
2015-04-24 10:22:09 -07:00
2015-04-07 13:43:28 -07:00
2015-04-24 08:46:18 -07:00
2015-04-03 16:04:21 +02:00
2015-04-26 17:22:07 -07:00
2015-03-18 17:27:03 +01:00
2015-04-08 08:11:51 -06:00
2015-04-24 10:22:09 -07:00
2015-04-20 15:16:25 -07:00
2015-04-15 12:41:14 +09:30
2015-03-06 17:03:22 -08:00
2015-03-25 12:25:29 +01:00
2015-04-22 11:22:55 -07:00
2015-04-24 10:22:09 -07:00
2015-04-03 16:17:04 +02:00