diff options
author | Jan Kara <jack@suse.cz> | 2022-04-01 12:27:47 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-17 19:34:25 -0600 |
commit | 5f550ede5edf846ecc0067be1ba80514e6fe7f8e (patch) | |
tree | f26e30540412f7a10fd25710d1dc0880a4e4527d /block/bfq-iosched.h | |
parent | fc84e1f941b91221092da5b3102ec82da24c5673 (diff) | |
download | lwn-5f550ede5edf846ecc0067be1ba80514e6fe7f8e.tar.gz lwn-5f550ede5edf846ecc0067be1ba80514e6fe7f8e.zip |
bfq: Remove pointless bfq_init_rq() calls
We call bfq_init_rq() from request merging functions where requests we
get should have already gone through bfq_init_rq() during insert and
anyway we want to do anything only if the request is already tracked by
BFQ. So replace calls to bfq_init_rq() with RQ_BFQQ() instead to simply
skip requests untracked by BFQ. We move bfq_init_rq() call in
bfq_insert_request() a bit earlier to cover request merging and thus
can transfer FIFO position in case of a merge.
CC: stable@vger.kernel.org
Tested-by: "yukuai (C)" <yukuai3@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220401102752.8599-6-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.h')
0 files changed, 0 insertions, 0 deletions