block: prepare request creation/destruction code to use REQ_OPs
authorMike Christie <mchristi@redhat.com>
Sun, 5 Jun 2016 19:32:11 +0000 (14:32 -0500)
committerJens Axboe <axboe@fb.com>
Tue, 7 Jun 2016 19:41:38 +0000 (13:41 -0600)
commite6a40b096e284ee11374807eaaab6fd21a3fbabb
tree41c8d380184824bdc952133339c6ead998ca2752
parent4993b77d3ff1d3a887804af2434b7b3dfac4c210
block: prepare request creation/destruction code to use REQ_OPs

This patch prepares *_get_request/*_put_request and freed_request,
to use separate variables for the operation and flags. In the
next patches the struct request users will be converted like
was done for bios where the op and flags are set separately.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c