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-04-18 14:20:48 +02:00
2014-04-01 18:49:04 -07:00
2014-06-06 07:57:37 -06:00
2013-04-09 14:13:21 -04:00
2013-04-09 14:13:23 -04:00
2013-02-27 19:10:18 -08:00
2013-10-25 11:36:26 +01:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:27 -04:00
2014-04-10 15:30:35 -07:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:17 -04:00
2014-06-06 07:57:37 -06: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
2014-06-06 07:57:37 -06:00
2014-06-06 07:57:37 -06:00
2014-04-10 15:30:35 -07:00
2014-04-10 15:30:35 -07:00
2014-04-01 18:49:04 -07:00
2013-11-23 22:33:50 -08:00
2014-06-06 07:57:37 -06: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-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:15 -04:00