aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-11-15 07:14:03 -0700
committerJens Axboe <axboe@kernel.dk>2024-11-15 07:14:03 -0700
commit957860cbc1dc89f79f2acc193470224e350dfd03 (patch)
treecd6d2ed7717134a15f3a63ee2e38563ddc999178
parentblock/genhd: use seq_put_decimal_ull for diskstats decimal values (diff)
downloadwireguard-linux-957860cbc1dc89f79f2acc193470224e350dfd03.tar.xz
wireguard-linux-957860cbc1dc89f79f2acc193470224e350dfd03.zip
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: a3396b99990d ("block: add a rq_list type") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 00212e96261a..a1fd0ddce5cf 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1006,12 +1006,12 @@ extern void blk_put_queue(struct request_queue *);
void blk_mark_disk_dead(struct gendisk *disk);
-#ifdef CONFIG_BLOCK
struct rq_list {
struct request *head;
struct request *tail;
};
+#ifdef CONFIG_BLOCK
/*
* blk_plug permits building a queue of related requests by holding the I/O
* fragments for a short period. This allows merging of sequential requests