Skip to content

blk-mq: add direct dispatch support for mq-deadline - #1460

Open
ghost wants to merge 1 commit into
linus-master_basefrom
series/1187912=>linus-master
Open

ghost wants to merge 1 commit into
linus-master_basefrom
series/1187912=>linus-master

Conversation

@ghost

@ghost ghost commented Oct 17, 2026

Copy link
Copy Markdown

Pull request for series with
subject: blk-mq: add direct dispatch support for mq-deadline
version: 1
url: https://patchwork.kernel.org/series/1187912/

@ghost

ghost commented Oct 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 58161ea
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost

ghost commented Oct 19, 2026

Copy link
Copy Markdown
Author

Upstream branch: c03c1a1
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from fe833a1 to 7af18af Compare October 19, 2026 00:11
@ghost
ghost force-pushed the linus-master_base branch from 90ea7e4 to 435b194 Compare October 22, 2026 07:21
@ghost

ghost commented Oct 22, 2026

Copy link
Copy Markdown
Author

Upstream branch: 7be4bc5
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 7af18af to 4264fd6 Compare October 22, 2026 07:32
@ghost
ghost force-pushed the linus-master_base branch from 435b194 to fd67522 Compare October 24, 2026 03:36
@ghost

ghost commented Oct 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: 17bb0e2
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 4264fd6 to bf65a07 Compare October 24, 2026 03:48
@ghost
ghost force-pushed the linus-master_base branch from fd67522 to 3b53a63 Compare October 26, 2026 01:52
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 21a7f44
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from bf65a07 to fe72d60 Compare October 26, 2026 02:20
@ghost
ghost force-pushed the linus-master_base branch from 3b53a63 to 5d84576 Compare October 26, 2026 07:01
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 6b4b543
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from fe72d60 to ee6787c Compare October 26, 2026 07:25
@ghost
ghost force-pushed the linus-master_base branch from 5d84576 to 6582ed2 Compare October 26, 2026 18:11
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: fb2c3f4
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from ee6787c to 726a1fc Compare October 26, 2026 18:52
@ghost
ghost force-pushed the linus-master_base branch from 6582ed2 to b3a1abc Compare October 26, 2026 23:55
@ghost

ghost commented Oct 27, 2026

Copy link
Copy Markdown
Author

Upstream branch: d135ab4
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 726a1fc to 08a16ac Compare October 27, 2026 00:15
@ghost
ghost force-pushed the linus-master_base branch from b3a1abc to 712496f Compare October 28, 2026 23:34
@ghost

ghost commented Oct 28, 2026

Copy link
Copy Markdown
Author

Upstream branch: c339f40
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 08a16ac to 85e5cef Compare October 28, 2026 23:55
@ghost
ghost force-pushed the linus-master_base branch from 712496f to a186880 Compare October 30, 2026 13:52
@ghost

ghost commented Oct 30, 2026

Copy link
Copy Markdown
Author

Upstream branch: d89e1d1
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 85e5cef to a53333f Compare October 30, 2026 14:18
@ghost
ghost force-pushed the linus-master_base branch from a186880 to 46206a3 Compare November 2, 2026 17:14
@ghost

ghost commented Nov 2, 2026

Copy link
Copy Markdown
Author

Upstream branch: 6628e7d
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from a53333f to 969eb90 Compare November 2, 2026 17:57
@ghost
ghost force-pushed the linus-master_base branch from 46206a3 to 220bd96 Compare November 3, 2026 23:41
@ghost

ghost commented Nov 4, 2026

Copy link
Copy Markdown
Author

Upstream branch: 05441d6
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 969eb90 to 2f08cce Compare November 4, 2026 00:10
@ghost
ghost force-pushed the linus-master_base branch from 220bd96 to 6c4625e Compare November 6, 2026 08:02
@ghost

ghost commented Nov 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: f66469d
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 2f08cce to 79a228f Compare November 6, 2026 08:50
@ghost
ghost force-pushed the linus-master_base branch from 6c4625e to c7f678d Compare November 7, 2026 03:08
@ghost

ghost commented Nov 7, 2026

Copy link
Copy Markdown
Author

Upstream branch: d487237
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 79a228f to 7b61fd6 Compare November 7, 2026 03:46
@ghost
ghost force-pushed the linus-master_base branch from c7f678d to 6aa6cd1 Compare November 10, 2026 07:53
On fast devices such as NVMe SSDs with spare capacity, scheduler insertion,
sorting and merging may add CPU overhead with little benefit. Allowing new
requests to reach the driver directly can reduce submission latency and
improve bandwidth when this overhead limits performance.

Add a skip_request elevator callback to support direct dispatch for
unplugged submissions and plug flushes outside the scheduling path.
Implement it in mq-deadline with request accounting preserved across
reinsertion and retries.

Expose a dispatch_direct tunable, enabled by default. Directly dispatched
requests may bypass queued requests, including higher priority or expired
requests. Setting dispatch_direct to 0 restores normal scheduler insertion.

Test sequential writes on an NVMe SSD with fio, comparing none, unmodified
mq-deadline, and mq-deadline with this patch and dispatch_direct enabled.

test A:
fio -name=jobs1-4k -direct=1 -iodepth=16 -numjobs=1 -filename=fiolog.txt
    -ioengine=libaio -blocksize=4k -size=10GB -rw=write -runtime=120
    -time_based -ramp_time=30
test B:
fio -name=jobs10-4k -direct=1 -iodepth=16 -numjobs=10 -filename=fiolog.txt
    -ioengine=libaio -blocksize=4k -size=10GB -rw=write -runtime=120
    -time_based -ramp_time=30
test C:
fio -name=jobs1-32k -direct=1 -iodepth=16 -numjobs=1 -filename=fiolog.txt
    -ioengine=libaio -blocksize=32k -size=10GB -rw=write -runtime=120
    -time_based -ramp_time=30

Bandwidth in MiB/s:

  Workload        none    mq-deadline    my-patch
  jobs1-4k        1209           1047        1174
  jobs10-4k       2458            946        2349
  jobs1-32k       2568           2565        2562

Direct dispatch improves bandwidth over unmodified mq-deadline by 12.1%
with one job and 148.3% with multiple jobs for the 4 KiB workloads,
reaching 97.1% and 95.6% of the bandwidth achieved with none, respectively.
All three configurations achieve the same maximum bandwidth.

Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn>
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: b3dfbde
series: https://patchwork.kernel.org/series/1187912/
version: 1

@ghost
ghost force-pushed the series/1187912=>linus-master branch from 7b61fd6 to e24d57f Compare November 10, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants