summaryrefslogtreecommitdiff
path: root/include/linux/bsg-lib.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-01-29 11:32:03 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2019-02-06 05:27:40 +0300
commit972248e9111ee6fe9fb56c24ecfd7434f3d713ac (patch)
treeb21c5da858f4a8378e313ead8c9a44830cc46e3e /include/linux/bsg-lib.h
parentccf3209f0044e46236e238494181ae1a73275fad (diff)
downloadlinux-972248e9111ee6fe9fb56c24ecfd7434f3d713ac.tar.xz
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>
Diffstat (limited to 'include/linux/bsg-lib.h')
-rw-r--r--include/linux/bsg-lib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/bsg-lib.h b/include/linux/bsg-lib.h
index b356e0006731..7f14517a559b 100644
--- a/include/linux/bsg-lib.h
+++ b/include/linux/bsg-lib.h
@@ -69,6 +69,10 @@ struct bsg_job {
int result;
unsigned int reply_payload_rcv_len;
+ /* BIDI support */
+ struct request *bidi_rq;
+ struct bio *bidi_bio;
+
void *dd_data; /* Used for driver-specific storage */
};