summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-06-18 02:44:51 +0200
committerJens Axboe <axboe@kernel.dk>2021-06-21 23:03:40 +0200
commit07757588e5076748308dd95ee2e3cd0b82ebb8c4 (patch)
tree57b729597e4e39e08f5b14c7e96bae905eff3b34 /net/batman-adv/routing.h
parentblock/mq-deadline: Improve the sysfs show and store macros (diff)
downloadlinux-07757588e5076748308dd95ee2e3cd0b82ebb8c4.tar.xz
linux-07757588e5076748308dd95ee2e3cd0b82ebb8c4.zip
block/mq-deadline: Reserve 25% of scheduler tags for synchronous requests
For interactive workloads it is important that synchronous requests are not delayed. Hence reserve 25% of scheduler tags for synchronous requests. This patch still allows asynchronous requests to fill the hardware queues since blk_mq_init_sched() makes sure that the number of scheduler requests is the double of the hardware queue depth. From blk_mq_init_sched(): q->nr_requests = 2 * min_t(unsigned int, q->tag_set->queue_depth, BLKDEV_MAX_RQ); Cc: Damien Le Moal <damien.lemoal@wdc.com> Cc: Hannes Reinecke <hare@suse.de> Cc: Christoph Hellwig <hch@lst.de> Cc: Ming Lei <ming.lei@redhat.com> Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com> Cc: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20210618004456.7280-12-bvanassche@acm.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/batman-adv/routing.h')
0 files changed, 0 insertions, 0 deletions