Kiyoshi Ueda
32fab448e5
block: add request update interface
...
This patch adds blk_update_request(), which updates struct request
with completing its data part, but doesn't complete the struct
request itself.
Though it looks like end_that_request_first() of older kernels,
blk_update_request() should be used only by request stacking drivers.
Request-based dm will use it in bio->bi_end_io callback to update
the original request when a data part of a cloned request completes.
Followings are additional background information of why request-based
dm needs this interface.
- Request stacking drivers can't use blk_end_request() directly from
the lower driver's completion context (bio->bi_end_io or rq->end_io),
because some device drivers (e.g. ide) may try to complete
their request with queue lock held, and it may cause deadlock.
See below for detailed description of possible deadlock:
<http://marc.info/?l=linux-kernel&m=120311479108569&w=2 >
- To solve that, request-based dm offloads the completion of
cloned struct request to softirq context (i.e. using
blk_complete_request() from rq->end_io).
- Though it is possible to use the same solution from bio->bi_end_io,
it will delay the notification of bio completion to the original
submitter. Also, it will cause inefficient partial completion,
because the lower driver can't perform the cloned request anymore
and request-based dm needs to requeue and redispatch it to
the lower driver again later. That's not good.
- So request-based dm needs blk_update_request() to perform the bio
completion in the lower driver's completion context, which is more
efficient.
Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com >
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com >
Signed-off-by: Jens Axboe <jens.axboe@oracle.com >
2008-10-09 08:56:18 +02:00
..
2008-07-25 09:28:09 -07:00
2008-07-25 10:53:30 -07:00
2008-07-15 16:11:29 -04:00
2008-08-10 23:32:07 +02:00
2008-09-15 14:25:23 -07:00
2008-07-27 01:26:17 +02:00
2008-10-09 08:56:01 +02:00
2008-07-31 00:38:01 -07:00
2008-07-25 10:53:34 -07:00
2008-07-23 13:09:48 -07:00
2008-07-30 10:10:23 +01:00
2008-08-05 14:33:46 -07:00
2008-07-26 12:00:03 -07:00
2008-08-13 16:57:31 -04:00
2008-08-13 17:33:01 -07:00
2008-07-25 10:53:47 -07:00
2008-07-24 10:47:24 -07:00
2008-07-01 11:28:06 +10:00
2008-08-12 10:13:38 +10:00
2008-07-26 12:00:04 -07:00
2008-07-24 10:47:27 -07:00
2008-07-17 17:59:55 -07:00
2008-09-13 16:46:15 -04:00
2008-07-24 10:47:41 -07:00
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:33 -07:00
2008-07-25 15:44:39 +10:00
2008-07-24 10:47:33 -07:00
2008-07-24 10:47:22 -07:00
2008-10-09 08:56:17 +02:00
2008-08-12 16:07:30 -07:00
2008-10-09 08:56:18 +02:00
2008-10-09 08:56:13 +02:00
2008-08-12 16:07:27 -07:00
2008-08-04 21:56:09 -07:00
2008-08-12 16:07:30 -07:00
2008-08-14 22:59:43 +10:00
2008-07-04 10:40:05 -07:00
2008-07-25 10:53:37 -07:00
2008-09-05 11:11:51 +02:00
2008-09-24 16:38:17 -07:00
2008-07-26 20:53:14 -04:00
2008-07-25 10:53:33 -07:00
2008-08-15 08:35:44 -07:00
2008-07-31 16:21:13 -07:00
2008-07-30 09:41:45 -07:00
2008-07-25 10:53:40 -07:00
2008-07-30 09:41:43 -07:00
2008-07-30 10:35:49 -07:00
2008-09-06 19:22:15 +02:00
2008-07-26 11:26:23 +02:00
2008-07-12 08:22:32 -05:00
2008-08-14 09:35:23 +10:00
2008-07-10 20:35:18 +08:00
2008-07-20 17:12:38 -07:00
2008-07-22 17:30:57 -07:00
2008-08-25 01:18:05 -04:00
2008-07-13 11:51:40 +01:00
2008-07-05 13:10:50 -07:00
2008-07-21 21:54:59 -07:00
2008-07-25 10:53:47 -07:00
2008-07-21 12:00:37 +01:00
2008-10-09 08:56:04 +02:00
2008-07-25 10:53:34 -07:00
2008-08-07 02:22:54 -04:00
2008-07-21 12:00:37 +01:00
2008-07-22 10:39:36 +10:00
2008-07-17 17:59:56 -07:00
2008-07-08 11:59:42 -07:00
2008-07-21 21:54:53 -07:00
2008-10-09 08:56:13 +02:00
2008-07-01 14:47:09 +10:00
2008-08-07 02:22:08 -04:00
2008-07-24 10:47:29 -07:00
2008-07-24 10:47:29 -07:00
2008-08-20 13:19:51 -07:00
2008-07-25 10:53:31 -07:00
2008-07-25 10:53:32 -07:00
2008-08-20 15:40:32 -07:00
2008-08-01 11:25:23 -04:00
2008-08-12 16:07:31 -07:00
2008-07-10 14:30:13 +01:00
2008-07-16 23:27:03 +02:00
2008-07-22 19:09:51 -07:00
2008-07-26 20:53:20 -04:00
2008-08-23 12:14:12 -07:00
2008-10-09 08:56:12 +02:00
2008-07-16 17:57:47 -05:00
2008-08-15 08:35:42 -07:00
2008-07-25 10:53:48 -07:00
2008-07-20 17:12:36 -07:00
2008-10-09 08:56:08 +02:00
2008-07-24 10:47:20 -07:00
2008-07-25 10:53:30 -07:00
2008-07-20 17:12:36 -07:00
2008-07-04 08:47:41 -04:00
2008-07-23 15:25:21 +02:00
2008-09-29 17:09:14 +02:00
2008-07-26 20:16:47 -07:00
2008-07-14 22:38:31 +02:00
2008-08-12 16:07:29 -07:00
2008-08-08 15:13:27 +01:00
2008-08-28 08:33:23 +02:00
2008-07-26 12:00:03 -07:00
2008-10-05 18:23:27 +02:00
2008-07-25 10:53:42 -07:00
2008-08-04 15:09:07 -04:00
2008-07-18 18:05:19 -07:00
2008-08-15 19:52:19 -07:00
2008-07-14 22:49:06 -07:00
2008-07-03 17:51:57 +09:00
2008-08-02 18:36:10 +01:00
2008-06-27 20:09:00 -07:00
2008-07-09 12:09:28 -04:00
2008-07-25 10:53:39 -07:00
2008-08-12 17:52:54 +10:00
2008-07-24 10:47:29 -07:00
2008-07-21 00:55:14 -04:00
2008-08-05 14:33:48 -07:00
2008-07-03 13:21:14 +02:00
2008-07-29 12:12:48 +02:00
2008-09-13 14:41:50 -07:00
2008-07-31 20:45:24 -07:00
2008-07-25 10:53:42 -07:00
2008-07-21 13:41:16 -07:00
2008-07-25 10:53:26 -07:00
2008-07-20 17:12:37 -07:00
2008-08-16 16:46:57 -07:00
2008-08-16 16:46:57 -07:00
2008-07-11 19:27:31 -04:00
2008-07-30 09:41:45 -07:00
2008-09-05 15:44:31 +01:00
2008-08-12 16:07:29 -07:00
2008-08-15 08:35:42 -07:00
2008-10-09 08:56:04 +02:00
2008-07-25 10:53:28 -07:00
2008-07-24 10:47:17 -07:00
2008-07-25 10:53:30 -07:00
2008-07-04 10:40:05 -07:00
2008-07-24 19:11:15 -07:00
2008-07-29 12:33:53 +03:00
2008-08-25 17:28:25 +03:00
2008-07-24 10:47:40 -07:00
2008-07-23 09:49:56 +01:00
2008-07-23 09:49:56 +01:00
2008-08-22 02:27:49 -04:00
2008-07-14 16:11:52 +02:00
2008-09-01 09:47:16 +02:00
2008-08-11 15:25:07 +02:00
2008-10-09 08:56:06 +02:00
2008-08-04 10:58:24 +09:00
2008-07-25 10:53:37 -07:00
2008-07-24 10:47:21 -07:00
2008-07-24 10:47:21 -07:00
2008-09-13 14:41:52 -07:00
2008-07-24 10:47:21 -07:00
2008-07-27 01:56:38 +02:00
2008-07-27 01:54:58 +02:00
2008-08-02 16:28:50 +02:00
2008-08-16 16:45:56 -07:00
2008-08-16 16:45:56 -07:00
2008-07-09 16:30:45 +10:00
2008-07-28 16:30:21 -07:00
2008-09-13 14:41:52 -07:00
2008-07-14 10:02:12 +02:00
2008-07-24 10:47:24 -07:00
2008-08-01 11:25:32 -04:00
2008-07-11 19:27:31 -04:00
2008-08-29 14:37:23 -07:00
2008-08-29 14:37:23 -07:00
2008-07-25 10:53:34 -07:00
2008-07-26 20:53:41 -04:00
2008-08-26 10:37:20 -07:00
2008-08-04 23:04:08 -07:00
2008-07-08 02:36:40 -07:00
2008-07-26 20:53:42 -04:00
2008-07-09 12:09:17 -04:00
2008-07-09 12:09:24 -04:00
2008-07-09 12:09:16 -04:00
2008-06-27 09:09:17 -04:00
2008-07-25 10:53:40 -07:00
2008-07-25 10:53:37 -07:00
2008-07-22 10:39:30 +10:00
2008-07-25 22:34:40 -04:00
2008-07-25 22:25:13 -04:00
2008-08-04 21:31:34 -07:00
2008-08-04 21:31:34 -07:00
2008-07-26 12:00:03 -07:00
2008-08-04 16:50:38 -07:00
2008-08-15 09:15:47 -07:00
2008-07-28 14:56:57 -07:00
2008-08-18 13:48:04 -07:00
2008-07-28 14:56:09 -07:00
2008-09-16 15:52:08 -07:00
2008-07-11 19:27:31 -04:00
2008-07-26 12:00:12 -07:00
2008-07-25 10:53:46 -07:00
2008-08-20 15:40:32 -07:00
2008-08-29 14:37:23 -07:00
2008-07-14 20:36:32 -07:00
2008-07-20 00:08:47 -07:00
2008-08-05 14:33:50 -07:00
2008-07-14 14:30:21 -07:00
2008-07-24 10:47:23 -07:00
2008-09-16 19:35:05 -07:00
2008-07-26 20:53:12 -04:00
2008-07-25 10:53:27 -07:00
2008-08-07 17:18:47 -07:00
2008-07-03 13:25:05 +01:00
2008-09-02 19:21:38 -07:00
2008-07-25 10:53:35 -07:00
2008-08-01 11:25:25 -04:00
2008-07-26 12:00:06 -07:00
2008-10-02 15:53:13 -07:00
2008-07-25 10:53:29 -07:00
2008-08-11 09:30:24 +02:00
2008-07-28 16:30:20 -07:00
2008-07-25 10:53:29 -07:00
2008-08-15 08:35:42 -07:00
2008-07-25 10:53:33 -07:00
2008-07-25 10:53:26 -07:00
2008-07-26 20:53:14 -04:00
2008-07-26 12:00:04 -07:00
2008-09-05 14:39:37 -07:00
2008-07-29 16:36:33 -04:00
2008-08-20 15:40:32 -07:00
2008-07-26 12:00:12 -07:00
2008-07-25 21:45:49 -07:00
2008-07-23 14:42:09 +02:00
2008-09-05 18:14:35 +02:00
2008-07-04 10:40:08 -07:00
2008-08-17 22:47:30 +10:00
2008-07-25 10:53:42 -07:00
2008-07-24 08:31:21 -04:00
2008-07-18 04:07:44 -07:00
2008-08-12 16:07:30 -07:00
2008-07-24 10:47:24 -07:00
2008-07-23 14:01:49 -04:00
2008-07-26 20:53:14 -04:00
2008-07-24 10:47:29 -07:00
2008-08-15 19:52:30 -07:00
2008-07-26 20:17:56 -07:00
2008-08-05 09:28:47 +03:00
2008-07-25 10:53:30 -07:00
2008-07-25 10:53:26 -07:00
2008-09-23 08:09:13 -07:00
2008-07-12 21:52:41 +01:00
2008-07-26 12:00:04 -07:00
2008-07-30 03:27:25 -07:00
2008-07-27 01:47:00 +02:00
2008-08-11 09:30:24 +02:00
2008-08-11 09:30:24 +02:00
2008-10-03 18:22:18 -07:00
2008-07-20 17:12:37 -07:00
2008-08-26 00:19:27 +10:00
2008-07-24 10:47:13 -07:00
2008-08-15 08:35:42 -07:00
2008-08-12 16:07:30 -07:00
2008-07-26 12:00:12 -07:00
2008-07-22 13:03:29 -07:00
2008-07-25 17:28:49 -07:00
2008-07-26 20:53:12 -04:00
2008-07-21 21:55:02 -07:00
2008-07-21 21:55:01 -07:00
2008-07-27 16:12:28 -07:00
2008-07-27 16:12:28 -07:00
2008-07-25 10:53:47 -07:00
2008-07-19 00:07:02 -07:00
2008-07-08 02:38:40 -07:00
2008-08-21 09:54:06 +02:00
2008-07-24 10:47:29 -07:00
2008-09-05 14:39:38 -07:00
2008-08-15 10:34:07 -07:00
2008-07-20 17:12:34 -07:00
2008-08-15 10:34:07 -07:00
2008-07-25 10:53:26 -07:00
2008-07-21 21:54:55 -07:00
2008-08-21 10:26:36 -07:00
2008-07-21 15:15:55 -07:00
2008-09-03 18:37:45 -03:00
2008-07-27 11:07:12 -03:00
2008-07-26 13:25:25 -03:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:05 +10:00
2008-07-25 12:06:12 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:04 +10:00
2008-07-25 12:06:14 +10:00
2008-07-25 12:06:04 +10:00
2008-08-16 16:45:56 -07:00
2008-07-24 10:47:14 -07:00
2008-08-15 10:34:07 -07:00
2008-07-25 10:53:40 -07:00
2008-07-15 08:36:38 -07:00
2008-07-10 16:55:37 -07:00