summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJosef Bacik2019-07-16 22:19:25 +0200
committerJens Axboe2019-07-18 18:20:13 +0200
commita6d81d30d3cd87f85bfd922358eb18b8146c4925 (patch)
tree36ce9e58c5124c3d4308786a7e8daf3ea25ba1a2 /block
parentblock, bfq: check also in-flight I/O in dispatch plugging (diff)
downloadkernel-qcow2-linux-a6d81d30d3cd87f85bfd922358eb18b8146c4925.tar.gz
kernel-qcow2-linux-a6d81d30d3cd87f85bfd922358eb18b8146c4925.tar.xz
kernel-qcow2-linux-a6d81d30d3cd87f85bfd922358eb18b8146c4925.zip
wait: add wq_has_single_sleeper helper
rq-qos sits in the io path so we want to take locks as sparingly as possible. To accomplish this we try not to take the waitqueue head lock unless we are sure we need to go to sleep, and we have an optimization to make sure that we don't starve out existing waiters. Since we check if there are existing waiters locklessly we need to be able to update our view of the waitqueue list after we've added ourselves to the waitqueue. Accomplish this by adding this helper to see if there is more than just ourselves on the list. Reviewed-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions