diff options
author | 2022-01-05 09:05:15 -0800 | |
---|---|---|
committer | 2022-01-05 12:25:42 -0700 | |
commit | edce22e19bfa86efa2522d041d6367f2f099e8ed (patch) | |
tree | 9548f38e65b1a2dea893d981e372bd56b6c75bad /include/linux/blkdev.h | |
parent | block: drop needless assignment in set_task_ioprio() (diff) | |
download | linux-edce22e19bfa86efa2522d041d6367f2f099e8ed.tar.gz linux-edce22e19bfa86efa2522d041d6367f2f099e8ed.tar.bz2 linux-edce22e19bfa86efa2522d041d6367f2f099e8ed.zip |
block: move rq_list macros to blk-mq.h
Move the request list macros to the header file that defines that struct
they operate on.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220105170518.3181469-2-kbusch@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 22746b2d6825..9c95df26fc26 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1339,33 +1339,4 @@ struct io_comp_batch { #define DEFINE_IO_COMP_BATCH(name) struct io_comp_batch name = { } -#define rq_list_add(listptr, rq) do { \ - (rq)->rq_next = *(listptr); \ - *(listptr) = rq; \ -} while (0) - -#define rq_list_pop(listptr) \ -({ \ - struct request *__req = NULL; \ - if ((listptr) && *(listptr)) { \ - __req = *(listptr); \ - *(listptr) = __req->rq_next; \ - } \ - __req; \ -}) - -#define rq_list_peek(listptr) \ -({ \ - struct request *__req = NULL; \ - if ((listptr) && *(listptr)) \ - __req = *(listptr); \ - __req; \ -}) - -#define rq_list_for_each(listptr, pos) \ - for (pos = rq_list_peek((listptr)); pos; pos = rq_list_next(pos)) - -#define rq_list_next(rq) (rq)->rq_next -#define rq_list_empty(list) ((list) == (struct request *) NULL) - #endif /* _LINUX_BLKDEV_H */ |