Jens Axboe
f27b087b81
block: add blk_rq_set_block_pc()
...
With the optimizations around not clearing the full request at alloc
time, we are leaving some of the needed init for REQ_TYPE_BLOCK_PC
up to the user allocating the request.
Add a blk_rq_set_block_pc() that sets the command type to
REQ_TYPE_BLOCK_PC, and properly initializes the members associated
with this type of request. Update callers to use this function instead
of manipulating rq->cmd_type directly.
Includes fixes from Christoph Hellwig <hch@lst.de> for my half-assed
attempt.
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-06-06 07:57:37 -06:00
..
2014-03-19 15:04:44 -07:00
2014-05-26 10:39:29 +02:00
2013-06-04 11:15:59 -07:00
2014-03-15 10:19:19 -07:00
2014-03-19 15:04:44 -07:00
2014-04-01 19:19:15 -07:00
2014-03-19 15:04:47 -07:00
2014-05-07 13:15:46 +02:00
2014-05-07 13:15:46 +02:00
2013-11-15 16:47:22 -08:00
2014-03-15 10:19:18 -07:00
2014-06-06 07:57:37 -06:00
2014-03-19 15:04:44 -07:00
2014-05-07 13:15:46 +02:00
2013-11-15 16:47:22 -08:00
2014-04-18 12:07:24 +02:00
2014-04-18 14:20:48 +02:00
2013-09-04 13:52:35 -07:00
2014-04-01 18:49:04 -07:00
2014-04-18 12:07:24 +02:00
2014-03-15 10:19:21 -07:00
2014-04-28 07:49:25 -07:00
2014-01-30 11:19:05 -08:00
2013-10-14 15:26:04 +02:00
2014-06-06 07:57:37 -06:00
2013-04-09 14:13:21 -04:00
2014-03-19 15:04:44 -07:00
2014-05-07 13:15:46 +02:00
2014-03-15 10:19:18 -07:00
2014-04-12 18:02:16 -07:00
2013-11-15 16:47:22 -08:00
2013-11-29 08:48:39 +04:00
2013-11-29 08:48:39 +04:00
2013-11-29 08:48:39 +04:00
2013-01-03 15:57:01 -08:00
2013-11-26 11:09:07 +01:00
2013-11-26 11:09:07 +01:00
2013-11-26 11:09:07 +01:00
2013-10-25 11:44:54 +01:00
2014-03-19 15:04:44 -07:00
2012-06-28 11:44:36 +02:00
2013-04-09 14:13:23 -04:00
2013-04-09 14:13:29 -04:00
2014-05-26 22:41:25 +02:00
2013-04-09 14:13:29 -04:00
2013-10-14 15:26:04 +02:00
2013-10-25 09:57:57 +01:00
2013-06-26 18:32:47 -07:00
2013-01-03 15:57:01 -08:00
2013-02-27 19:10:18 -08:00
2013-07-09 22:52:29 +01:00
2013-11-15 16:47:22 -08:00
2013-01-03 15:57:01 -08:00
2013-10-25 11:40:42 +01:00
2013-10-25 11:36:26 +01:00
2014-03-19 15:04:44 -07:00
2013-04-09 14:13:17 -04:00
2014-03-19 15:04:44 -07:00
2014-03-19 15:04:44 -07:00
2013-08-01 18:08:34 -07:00
2013-08-01 18:08:34 -07:00
2013-01-03 15:57:01 -08:00
2013-06-26 18:32:47 -07:00
2014-03-19 15:04:44 -07:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2014-03-19 15:04:44 -07:00
2013-04-09 14:13:16 -04:00
2013-11-26 11:09:07 +01:00
2014-03-15 10:18:59 -07:00
2014-03-15 10:19:23 -07:00
2014-04-21 07:56:53 -07:00
2014-03-15 10:19:23 -07:00
2013-01-03 15:57:01 -08:00
2012-11-27 08:59:43 +04:00
2013-04-09 14:13:16 -04:00
2014-03-19 15:04:44 -07:00
2014-03-19 15:04:44 -07:00
2014-04-01 19:19:15 -07:00
2014-03-19 15:04:42 -07:00
2013-11-29 08:48:39 +04:00
2013-04-09 14:13:27 -04:00
2014-03-15 10:19:19 -07:00
2014-04-11 16:15:36 -04:00
2014-04-11 16:15:36 -04:00
2013-01-03 15:57:01 -08:00
2014-04-10 15:30:35 -07:00
2013-01-03 15:57:01 -08:00
2014-03-15 10:19:18 -07:00
2014-04-03 16:57:19 -07:00
2013-01-03 15:57:01 -08:00
2013-12-19 20:56:28 -08:00
2013-04-09 14:13:17 -04:00
2013-12-19 07:39:02 -08:00
2014-03-27 08:26:31 -07:00
2014-03-27 08:26:31 -07:00
2013-01-03 15:57:01 -08:00
2013-04-09 14:13:15 -04:00
2013-10-14 15:26:04 +02:00
2013-04-15 14:30:44 -06:00
2013-10-14 15:31:06 +02:00
2014-03-19 15:04:44 -07:00
2013-04-09 14:13:17 -04:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2013-06-19 17:53:35 +02:00
2014-06-06 07:57:37 -06:00
2014-03-19 15:04:44 -07:00
2013-04-09 14:13:17 -04:00
2013-12-06 08:30:18 -08:00
2013-04-09 14:13:17 -04:00
2013-01-03 15:57:01 -08:00
2014-02-27 08:07:39 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2014-03-19 15:04:37 -07:00
2013-06-24 13:00:10 -07:00
2014-06-06 07:57:37 -06:00
2014-06-06 07:57:37 -06:00
2014-04-24 13:44:54 -04:00
2014-04-10 15:30:35 -07:00
2014-04-10 15:30:35 -07:00
2013-05-31 15:16:51 -04:00
2014-04-11 17:23:52 -07:00
2014-04-01 18:49:04 -07:00
2014-03-15 10:19:24 -07:00
2014-03-15 10:17:50 -07:00
2014-02-20 14:54:28 +01:00
2014-05-22 15:54:03 -07:00
2014-03-24 10:05:30 -07:00
2014-04-11 17:23:52 -07:00
2013-11-23 22:33:50 -08:00
2014-04-16 21:37:30 -06:00
2014-03-27 08:26:33 -07:00
2014-03-27 08:26:31 -07:00
2014-06-06 07:57:37 -06:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2013-12-16 10:57:51 -08:00
2014-06-06 07:57:37 -06:00
2012-09-14 17:59:29 +01:00
2013-10-14 15:26:04 +02:00
2014-03-12 13:16:54 +04:00
2013-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2013-01-03 15:57:01 -08:00
2014-03-19 15:04:44 -07:00
2013-04-09 14:13:17 -04:00
2013-11-15 16:47:22 -08:00
2013-10-25 11:51:37 +01:00
2014-03-19 15:04:44 -07:00
2014-04-28 16:16:08 -07:00
2014-03-19 15:04:46 -07:00
2014-03-19 15:04:46 -07:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:15 -04:00
2014-03-19 15:04:44 -07:00
2013-01-03 15:57:01 -08:00
2013-11-26 11:09:07 +01:00