aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bsg-lib.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-01-29 09:32:03 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-02-05 21:27:40 -0500
commit972248e9111ee6fe9fb56c24ecfd7434f3d713ac (patch)
treeb21c5da858f4a8378e313ead8c9a44830cc46e3e /include/linux/bsg-lib.h
parentscsi: bsg: refactor bsg_ioctl (diff)
downloadlinux-dev-972248e9111ee6fe9fb56c24ecfd7434f3d713ac.tar.xz
linux-dev-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 '')
-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 */
};