diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-10-19 14:02:30 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-19 17:22:04 +0200 |
commit | dc5fc361d891e089dfd9c0a975dc78041036b906 (patch) | |
tree | 004b0128343675f265496ef661afa6ac63c55835 /block/blk-core.c | |
parent | block: change plugging to use a singly linked list (diff) | |
download | linux-dc5fc361d891e089dfd9c0a975dc78041036b906.tar.xz linux-dc5fc361d891e089dfd9c0a975dc78041036b906.zip |
block: attempt direct issue of plug list
If we have just one queue type in the plug list, then we can extend our
direct issue to cover a full plug list as well. This allows sending a
batch of requests for direct issue, which is more efficient than doing
one-at-a-time kind of issue.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 14d20909f61a..e6ad5b51d0c3 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1555,6 +1555,7 @@ void blk_start_plug_nr_ios(struct blk_plug *plug, unsigned short nr_ios) plug->nr_ios = min_t(unsigned short, nr_ios, BLK_MAX_REQUEST_COUNT); plug->rq_count = 0; plug->multiple_queues = false; + plug->has_elevator = false; plug->nowait = false; INIT_LIST_HEAD(&plug->cb_list); |