block: provide helpers for rq_list manipulation
authorJens Axboe <axboe@kernel.dk>
Wed, 13 Oct 2021 13:58:52 +0000 (07:58 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:40:39 +0000 (14:40 -0600)
commit013a7f95438144f4ab39a1017a0bff2765d2551a
tree7e2924d5929d85a7c29c15230cfcea17f8824eb0
parentafd7de03c5268f74202c1dd4780a8532a11f4c6b
block: provide helpers for rq_list manipulation

Instead of open-coding the list additions, traversal, and removal,
provide a basic set of helpers.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blkdev.h