]> git.baikalelectronics.ru Git - kernel.git/commit
block: sum requests in the plug structure
authorJens Axboe <axboe@kernel.dk>
Sat, 24 Nov 2018 05:04:33 +0000 (22:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Nov 2018 17:35:22 +0000 (10:35 -0700)
commita266215d7687adf991f3cc4ce86651ea5a59afe1
tree726b690fbf0f0c4cf67f6fcad5266cbe076997ba
parentff88fabfb1bd804f85f956280a6a35aa5e9bb11c
block: sum requests in the plug structure

This isn't exactly the same as the previous count, as it includes
requests for all devices. But that really doesn't matter, if we have
more than the threshold (16) queued up, flush it. It's not worth it
to have an expensive list loop for this.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c
block/blk.h
include/linux/blkdev.h