diff options
author | Xiao Ni <xni@redhat.com> | 2023-02-09 04:19:30 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-02-09 16:11:25 +0100 |
commit | 23f3e3272e7a4d9fb870485cd6df1e4f9539282c (patch) | |
tree | 4db43c1367b06fd524083a2a7539d0397ed44fac /block/elevator.c | |
parent | Revert "blk-cgroup: simplify blkg freeing from initialization failure paths" (diff) | |
download | linux-23f3e3272e7a4d9fb870485cd6df1e4f9539282c.tar.xz linux-23f3e3272e7a4d9fb870485cd6df1e4f9539282c.zip |
block: Merge bio before checking ->cached_rq
It checks if plug->cached_rq is empty before merging bio. But the merge action
doesn't have relationship with plug->cached_rq, it trys to merge bio with
requests within plug->mq_list. Now it checks if ->cached_rq is empty before
merging bio. If it's empty, it will miss the merge chances. So move the merge
function before checking ->cached_rq.
Signed-off-by: Xiao Ni <xni@redhat.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230209031930.27354-1-xni@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/elevator.c')
0 files changed, 0 insertions, 0 deletions