block: bump max plugged deferred size from 16 to 32
authorJens Axboe <axboe@kernel.dk>
Wed, 6 Oct 2021 18:01:07 +0000 (12:01 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:16 +0000 (19:16 +0100)
commit396c9e834d6981164fa112c4bcf97283cf2410e0
treed096996f6fcbce292d4927f6fcded6cd76482579
parent3792174592b6650884d397c1b1e4e98153a00a2c
block: bump max plugged deferred size from 16 to 32

[ Upstream commit ba0ffdd8ce48ad7f7e85191cd29f9674caca3745 ]

Particularly for NVMe with efficient deferred submission for many
requests, there are nice benefits to be seen by bumping the default max
plug count from 16 to 32. This is especially true for virtualized setups,
where the submit part is more expensive. But can be noticed even on
native hardware.

Reduce the multiple queue factor from 4 to 2, since we're changing the
default size.

While changing it, move the defines into the block layer private header.
These aren't values that anyone outside of the block layer uses, or
should use.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-mq.c
block/blk.h
include/linux/blkdev.h