virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] use larger max_request_size for virtio_blk
@ 2018-04-05 10:09 Weiping Zhang
  2018-04-05 10:10 ` [RFC PATCH 1/2] blk-setting: add new helper blk_queue_max_hw_sectors_no_limit Weiping Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Weiping Zhang @ 2018-04-05 10:09 UTC (permalink / raw)
  To: axboe, cohuck, mst, jasowang; +Cc: linux-block, virtualization

Hi,

For virtio block device, actually there is no a hard limit for max request
size, and virtio_blk driver set -1 to blk_queue_max_hw_sectors(q, -1U);.
But it doesn't work, because there is a default upper limitation
BLK_DEF_MAX_SECTORS (1280 sectors). So this series want to add a new helper
blk_queue_max_hw_sectors_no_limit to set a proper max reqeust size.

Weiping Zhang (2):
  blk-setting: add new helper blk_queue_max_hw_sectors_no_limit
  virtio_blk: add new module parameter to set max request size

 block/blk-settings.c       | 20 ++++++++++++++++++++
 drivers/block/virtio_blk.c | 32 ++++++++++++++++++++++++++++++--
 include/linux/blkdev.h     |  2 ++
 3 files changed, 52 insertions(+), 2 deletions(-)

-- 
2.9.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-07  8:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-05 10:09 [RFC PATCH 0/2] use larger max_request_size for virtio_blk Weiping Zhang
2018-04-05 10:10 ` [RFC PATCH 1/2] blk-setting: add new helper blk_queue_max_hw_sectors_no_limit Weiping Zhang
2018-04-05 10:10 ` [RFC PATCH 2/2] virtio_blk: add new module parameter to set max request size Weiping Zhang
2018-04-05 12:24 ` [RFC PATCH 0/2] use larger max_request_size for virtio_blk Martin K. Petersen
2018-04-05 14:29 ` Jens Axboe
2018-04-07  8:30   ` Weiping Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).