block: introduce rq_list_move
authorKeith Busch <kbusch@kernel.org>
Wed, 5 Jan 2022 17:05:17 +0000 (09:05 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Jan 2022 19:25:42 +0000 (12:25 -0700)
commitd2528be7a8b09af9796a270debd14101a72bb552
treed0066044c0ae1009dde56ba1684ff7b30a723ece
parent3764fd05e1f89530e2ee5cbff0b638f2b1141b90
block: introduce rq_list_move

When iterating a list, a particular request may need to be moved for
special handling. Provide a helper function to achieve that so drivers
don't need to reimplement rqlist manipulation.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220105170518.3181469-4-kbusch@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-mq.h