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>
This commit is contained in:

committed by
Martin K. Petersen

parent
ccf3209f00
commit
972248e911
@@ -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 */
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user