Skip to content

Commit 957860c

Browse files
committed
block: make struct rq_list available for !CONFIG_BLOCK
A previous commit changed how requests are linked in the plug structure, but unlike the previous method, it uses a new type for it rather than struct request. The latter is available even for !CONFIG_BLOCK, while struct rq_list is now. Move it outside CONFIG_BLOCK. Reported-by: Nathan Chancellor <nathan@kernel.org> Fixes: a3396b9 ("block: add a rq_list type") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent bda9c7d commit 957860c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/blkdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,12 +1006,12 @@ extern void blk_put_queue(struct request_queue *);
10061006

10071007
void blk_mark_disk_dead(struct gendisk *disk);
10081008

1009-
#ifdef CONFIG_BLOCK
10101009
struct rq_list {
10111010
struct request *head;
10121011
struct request *tail;
10131012
};
10141013

1014+
#ifdef CONFIG_BLOCK
10151015
/*
10161016
* blk_plug permits building a queue of related requests by holding the I/O
10171017
* fragments for a short period. This allows merging of sequential requests

0 commit comments

Comments
 (0)