summaryrefslogtreecommitdiff
path: root/block/blk-mq-tag.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-02-05 13:16:56 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-22 15:42:29 +0100
commit0528a533f368c93efe752dbd52698dcea214554a (patch)
treed3c5a2cd3befe0f8af33d6e821d070e9cca9e234 /block/blk-mq-tag.h
parent67154fb8012152aed14dbd70e5b7fc79dcfd53f4 (diff)
blk-wbt: account flush requests correctly
commit 5235553d821433e1f4fa720fd025d2c4b7ee9994 upstream. Mikulas reported a workload that saw bad performance, and figured out what it was due to various other types of requests being accounted as reads. Flush requests, for instance. Due to the high latency of those, we heavily throttle the writes to keep the latencies in balance. But they really should be accounted as writes. Fix this by checking the exact type of the request. If it's a read, account as a read, if it's a write or a flush, account as a write. Any other request we disregard. Previously everything would have been mistakenly accounted as reads. Reported-by: Mikulas Patocka <mpatocka@redhat.com> Cc: stable@vger.kernel.org # v4.12+ Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-mq-tag.h')
0 files changed, 0 insertions, 0 deletions