]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
block: remove rq_list_move
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Nov 2024 15:20:43 +0000 (16:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:48:06 +0000 (10:48 +0200)
commit e8225ab15006fbcdb14cef426a0a54475292fbbc upstream.

Unused now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241113152050.157179-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/blk-mq.h

index d5229fd6f054b7dc35a65d1e1cd2d62c84e00618..e2633bcee673c035e9bad2e66727fd84d7305226 100644 (file)
@@ -269,23 +269,6 @@ static inline unsigned short req_get_ioprio(struct request *req)
 #define rq_list_next(rq)       (rq)->rq_next
 #define rq_list_empty(list)    ((list) == (struct request *) NULL)
 
-/**
- * rq_list_move() - move a struct request from one list to another
- * @src: The source list @rq is currently in
- * @dst: The destination list that @rq will be appended to
- * @rq: The request to move
- * @prev: The request preceding @rq in @src (NULL if @rq is the head)
- */
-static inline void rq_list_move(struct request **src, struct request **dst,
-                               struct request *rq, struct request *prev)
-{
-       if (prev)
-               prev->rq_next = rq->rq_next;
-       else
-               *src = rq->rq_next;
-       rq_list_add(dst, rq);
-}
-
 /**
  * enum blk_eh_timer_return - How the timeout handler should proceed
  * @BLK_EH_DONE: The block driver completed the command or will complete it at