diff options
author | 2025-07-28 01:39:57 +0800 | |
---|---|---|
committer | 2025-08-11 10:21:38 -0600 | |
commit | d8b96a79622e03813c221450498ca9742704ebf2 (patch) | |
tree | 44eef75404704cc338420bfb7b3013f6c189fb58 /rust/pin-init/internal/src | |
parent | block: fix kobject double initialization in add_disk (diff) | |
download | wireguard-linux-d8b96a79622e03813c221450498ca9742704ebf2.tar.xz wireguard-linux-d8b96a79622e03813c221450498ca9742704ebf2.zip |
blk-wbt: Optimize wbt_done() for non-throttled writes
In the current implementation, the sync_cookie and last_cookie members of
struct rq_wb are used only by read requests and not by non-throttled write
requests. Based on this, we can optimize wbt_done() by removing one if
condition check for non-throttled write requests.
Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250727173959.160835-2-yizhou.tang@shopee.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions