]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a00a64e96d92cd15fc0284c7ee8d92bcb9a6f02
treee31b141cd7540e79c4d0bc199f5a4a71db261b69
parent9c2f02278f9149f1b19c8e4bf850197fbeb0bd18
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