diff options
author | Christoph Hellwig <hch@lst.de> | 2019-01-29 09:32:03 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-02-05 21:27:40 -0500 |
commit | 972248e9111ee6fe9fb56c24ecfd7434f3d713ac (patch) | |
tree | b21c5da858f4a8378e313ead8c9a44830cc46e3e /include/linux/bsg-lib.h | |
parent | ccf3209f0044e46236e238494181ae1a73275fad (diff) | |
download | talos-op-linux-972248e9111ee6fe9fb56c24ecfd7434f3d713ac.tar.gz talos-op-linux-972248e9111ee6fe9fb56c24ecfd7434f3d713ac.zip |
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.h | 4 |
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 */ }; |