diff options
| author | Christoph Hellwig <hch@lst.de> | 2018-12-06 11:01:10 -0500 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-02-05 21:30:27 -0500 |
| commit | 8b3238cabd50e2715b6544e724e74685209b190a (patch) | |
| tree | dd0a2758ec0c8bd9066874d448e9afe713b6f359 /include/linux/blkdev.h | |
| parent | 69ed175c195595c73901e18366cb0ebeaeb68b8a (diff) | |
scsi: block: remove bidi support
Unused now, and another field in struct request bites the dust.
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/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index fd1450d53f1c..21beb456b97a 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -234,9 +234,6 @@ struct request { | |||
| 234 | */ | 234 | */ |
| 235 | rq_end_io_fn *end_io; | 235 | rq_end_io_fn *end_io; |
| 236 | void *end_io_data; | 236 | void *end_io_data; |
| 237 | |||
| 238 | /* for bidi */ | ||
| 239 | struct request *next_rq; | ||
| 240 | }; | 237 | }; |
| 241 | 238 | ||
| 242 | static inline bool blk_op_is_scsi(unsigned int op) | 239 | static inline bool blk_op_is_scsi(unsigned int op) |
| @@ -572,7 +569,6 @@ struct request_queue { | |||
| 572 | 569 | ||
| 573 | #define QUEUE_FLAG_STOPPED 1 /* queue is stopped */ | 570 | #define QUEUE_FLAG_STOPPED 1 /* queue is stopped */ |
| 574 | #define QUEUE_FLAG_DYING 2 /* queue being torn down */ | 571 | #define QUEUE_FLAG_DYING 2 /* queue being torn down */ |
| 575 | #define QUEUE_FLAG_BIDI 4 /* queue supports bidi requests */ | ||
| 576 | #define QUEUE_FLAG_NOMERGES 5 /* disable merge attempts */ | 572 | #define QUEUE_FLAG_NOMERGES 5 /* disable merge attempts */ |
| 577 | #define QUEUE_FLAG_SAME_COMP 6 /* complete on same CPU-group */ | 573 | #define QUEUE_FLAG_SAME_COMP 6 /* complete on same CPU-group */ |
| 578 | #define QUEUE_FLAG_FAIL_IO 7 /* fake timeout */ | 574 | #define QUEUE_FLAG_FAIL_IO 7 /* fake timeout */ |
| @@ -644,8 +640,6 @@ static inline bool blk_account_rq(struct request *rq) | |||
| 644 | return (rq->rq_flags & RQF_STARTED) && !blk_rq_is_passthrough(rq); | 640 | return (rq->rq_flags & RQF_STARTED) && !blk_rq_is_passthrough(rq); |
| 645 | } | 641 | } |
| 646 | 642 | ||
| 647 | #define blk_bidi_rq(rq) ((rq)->next_rq != NULL) | ||
| 648 | |||
| 649 | #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) | 643 | #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) |
| 650 | 644 | ||
| 651 | #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ) | 645 | #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ) |
