lkml.org 
[lkml]   [2021]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v11 0/3] bio: control bio max size
Date
bio size can grow up to 4GB after muli-page bvec has been enabled.
But sometimes large size of bio would lead to inefficient behaviors.
Control of bio max size will be helpful to improve inefficiency.

blk_queue_max_bio_bytes() is added to enable be set the max_bio_bytes in
each driver layer. And max_bio_bytes sysfs is added to show current
max_bio_bytes for each request queue.
bio size can be controlled via max_bio_bytes.

Changheun Lee (3):
bio: control bio max size
blk-sysfs: add max_bio_bytes
scsi: set max_bio_bytes with queue max sectors

Documentation/ABI/testing/sysfs-block | 10 ++++++++++
Documentation/block/queue-sysfs.rst | 7 +++++++
block/bio.c | 17 ++++++++++++++---
block/blk-settings.c | 19 +++++++++++++++++++
block/blk-sysfs.c | 7 +++++++
drivers/scsi/scsi_lib.c | 2 ++
include/linux/bio.h | 4 +++-
include/linux/blkdev.h | 3 +++
8 files changed, 65 insertions(+), 4 deletions(-)

--
2.29.0

\
 
 \ /
  Last update: 2021-06-02 14:31    [W:0.147 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site