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-06-02 09:22:24 -07:00
2014-05-07 18:27:45 +02:00
2014-06-03 11:44:48 -07:00
2014-04-09 08:39:39 -07:00
2014-04-18 16:40:08 -07:00
2013-12-23 18:34:58 -08:00
2014-01-24 22:39:54 +01:00
2014-06-03 23:12:20 +02:00
2014-06-06 07:57:37 -06:00
2014-05-13 11:26:27 -04:00
2014-06-04 10:02:38 -07:00
2013-11-15 09:32:21 +09:00
2013-11-09 00:16:29 -05:00
2014-06-03 08:34:00 -07:00
2014-02-13 10:08:52 +05:30
2014-01-16 10:23:02 +10:30
2014-04-01 23:19:14 -04:00
2014-03-10 11:44:42 -04:00
2014-04-18 14:20:48 +02:00
2014-05-20 10:30:40 +09:00
2014-02-20 14:54:28 +01:00
2014-03-04 07:55:47 -08:00
2014-01-16 11:15:50 +01:00
2014-04-07 16:36:07 -07:00
2013-12-29 16:34:25 -05:00
2014-03-07 11:41:32 -05:00
2014-04-17 12:30:40 -07:00
2014-05-16 14:05:22 +02:00
2014-03-13 12:11:00 +10:30
2014-01-25 08:55:09 +01:00
2014-04-03 16:20:50 -07:00
2013-12-11 15:52:34 +01:00
2014-05-27 17:38:11 -07:00
2013-12-26 13:29:35 -05:00
2014-04-01 23:19:08 -04:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
2013-11-09 00:16:19 -05:00
2014-04-01 23:19:10 -04:00
2013-10-14 17:15:48 +02:00
2013-12-05 13:05:48 -08:00
2014-03-17 15:14:16 -04:00
2014-03-17 15:15:21 -04:00
2014-01-25 03:14:05 -05:00
2014-04-07 10:59:19 -07:00
2014-06-04 10:02:38 -07:00
2014-06-04 09:05:12 -07:00
2014-04-24 15:01:33 -06:00
2014-05-14 09:46:10 -07:00
2014-06-04 16:54:07 -07:00
2013-10-17 00:36:06 +02:00
2014-06-04 16:54:21 -07:00
2014-03-19 22:24:08 -04:00
2014-02-17 15:01:52 -08:00
2014-06-04 16:54:12 -07:00
2014-01-28 13:20:09 -08:00
2014-04-01 17:08:43 +02:00
2014-05-20 15:19:25 -05:00
2013-12-19 19:09:38 -05:00
2014-01-27 21:02:39 -08:00
2014-02-15 11:55:28 -08:00
2014-02-17 15:01:37 -08:00
2014-06-04 16:53:57 -07:00
2014-06-04 16:53:56 -07:00
2014-05-14 09:46:32 -07:00
2014-06-04 16:53:57 -07:00
2014-04-07 16:35:53 -07:00
2014-06-04 16:53:57 -07:00
2013-10-17 15:53:09 -04:00
2014-01-30 16:56:55 -08:00