]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: bsg-lib: handle bidi requests without block layer help
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Jan 2019 08:32:03 +0000 (09:32 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:27:40 +0000 (21:27 -0500)
commit972248e9111ee6fe9fb56c24ecfd7434f3d713ac
treeb21c5da858f4a8378e313ead8c9a44830cc46e3e
parentccf3209f0044e46236e238494181ae1a73275fad
scsi: bsg-lib: handle bidi requests without block layer help

We can just stash away the second request in struct bsg_job instead of
using the block layer req->next_rq field, allowing for the eventual removal
of the latter.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
block/bsg-lib.c
block/bsg.c
drivers/scsi/scsi_transport_sas.c
include/linux/bsg-lib.h