scsi/osd: open code blk_make_request
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jul 2016 09:31:53 +0000 (11:31 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 20 Jul 2016 23:38:35 +0000 (17:38 -0600)
commit4613c5f1df92f3cb5a8f89c7dfefc37402c16bd8
treee31b141cd7540e79c4d0bc199f5a4a71db261b69
parentdd9cf04611c566f980638ec0c592c38ea5d463ce
scsi/osd: open code blk_make_request

I wish the OSD code could simply use blk_rq_map_* helpers like
everyone else, but the complex nature of deciding if we have
DATA IN and/or DATA OUT buffers might make this impossible
(at least for a mere human like me).

But using blk_rq_append_bio at least allows sharing the setup code
between request with or without dat a buffers, and given that this
is the last user of blk_make_request it allows getting rid of that
somewhat awkward interface.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Boaz Harrosh <ooo@electrozaur.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
drivers/scsi/osd/osd_initiator.c
include/linux/blkdev.h