Skip to content

Commit e8225ab

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove rq_list_move
Unused now. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 7f212e9 commit e8225ab

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

include/linux/blk-mq.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -268,23 +268,6 @@ static inline unsigned short req_get_ioprio(struct request *req)
268268
#define rq_list_next(rq) (rq)->rq_next
269269
#define rq_list_empty(list) ((list) == (struct request *) NULL)
270270

271-
/**
272-
* rq_list_move() - move a struct request from one list to another
273-
* @src: The source list @rq is currently in
274-
* @dst: The destination list that @rq will be appended to
275-
* @rq: The request to move
276-
* @prev: The request preceding @rq in @src (NULL if @rq is the head)
277-
*/
278-
static inline void rq_list_move(struct request **src, struct request **dst,
279-
struct request *rq, struct request *prev)
280-
{
281-
if (prev)
282-
prev->rq_next = rq->rq_next;
283-
else
284-
*src = rq->rq_next;
285-
rq_list_add(dst, rq);
286-
}
287-
288271
/**
289272
* enum blk_eh_timer_return - How the timeout handler should proceed
290273
* @BLK_EH_DONE: The block driver completed the command or will complete it at

0 commit comments

Comments
 (0)