block bits for 2.6.31-rc5
Hi Linus,
Two things here - one is an IO topology fix set, a pre-requisite for merging and fixing those for dm. The other is switching bsg to default on and removing the experimental label. Distros have been shipping it on for some time, and udev makes good use of it. The experimental label should have been removed long ago.
Please pull.
git://git.kernel.dk/linux-2.6-block.git for-linus
John Stoffel (1):
Make SCSI SG v4 driver enabled by default and remove EXPERIMENTAL dependency, since udev depends on BSG
Martin K. Petersen (4):
block: Make blk_queue_stack_limits use the new stacking interface
block: Add a wrapper for setting minimum request size without a queue
block: Stack optimal I/O size
block: Update topology documentation
Documentation/ABI/testing/sysfs-block | 37 ++++++++++------ block/Kconfig | 11 +++-- block/blk-settings.c | 77 +++++++++++++++++++------------- include/linux/blkdev.h | 1 + 4 files changed, 77 insertions(+), 49 deletions(-)
Documentation/ABI/testing/sysfs-block +23 -14
@@ -94,28 +94,37 @@ What: /sys/block/<disk>/queue/physical_block_size Date: May 2009 Contact: Martin K. Petersen <[email protected]> Description: - This is the smallest unit the storage device can write - without resorting to read-modify-write operation. It is - usually the same as the logical block size but may be - bigger. One example is SATA drives with 4KB sectors - that expose a 512-byte logical block size to the - operating system. + This is the smallest unit a physical storage device can + write atomically. It is usually the same as the logical + block size but may be bigger. One example is SATA + drives with 4KB sectors that expose a 512-byte logical + block size to the operating system. For stacked block + devices the physical_block_size variable contains the + maximum physical_block_size of the component devices. What: /sys/block/<disk>/queue/minimum_io_size Date: April 2009 Contact: Martin K. Petersen <[email protected]> Description: - Storage devices may report a preferred minimum I/O size, - which is the smallest request the device can perform - without incurring a read-modify-write penalty. For disk - drives this is often the physical block size. For RAID - arrays it is often the stripe chunk size. + Storage devices may report a granularity or preferred + minimum I/O size which is the smallest request the + device can perform without incurring a performance + penalty. For disk drives this is often the physical + block size. For RAID arrays it is often the stripe + chunk size. A properly aligned multiple of + minimum_io_size is the preferred request size for + workloads where a high number of I/O operations is + desired. What: /sys/block/<disk>/queue/optimal_io_size Date: April 2009 Contact: Martin K. Petersen <[email protected]> Description: Storage devices may report an optimal I/O size, which is - the device's preferred unit of receiving I/O. This is - rarely reported for disk drives. For RAID devices it is - usually the stripe width or the internal block size. + the device's preferred unit for sustained I/O. This is + rarely reported for disk drives. For RAID arrays it is + usually the stripe width or the internal track size. A + properly aligned multiple of optimal_io_size is the + preferred request size for workloads where sustained + throughput is desired. If no optimal I/O size is + reported this file contains 0.
block/Kconfig +7 -4
@@ -48,9 +48,9 @@ config LBDAF If unsure, say Y. config BLK_DEV_BSG - bool "Block layer SG support v4 (EXPERIMENTAL)" - depends on EXPERIMENTAL - ---help--- + bool "Block layer SG support v4" + default y + help Saying Y here will enable generic SG (SCSI generic) v4 support for any block device.
@@ -60,7 +60,10 @@ config BLK_DEV_BSG protocols (e.g. Task Management Functions and SMP in Serial Attached SCSI). - If unsure, say N. + This option is required by recent UDEV versions to properly + access device serial numbers, etc. + + If unsure, say Y. config BLK_DEV_INTEGRITY bool "Block layer data integrity support"
block/blk-settings.c +46 -31
116 lines not on this page · raw message
include/linux/blkdev.h +1 -0
@@ -913,6 +913,7 @@ extern void blk_queue_logical_block_size(struct request_queue *, unsigned short)extern void blk_queue_physical_block_size (struct request_queue *,unsigned short );extern void blk_queue_alignment_offset (struct request_queue *q,unsigned int alignment); +extern void blk_limits_io_min (struct queue_limits *limits,unsigned int min);extern void blk_queue_io_min (struct request_queue *q,unsigned int min);extern void blk_queue_io_opt (struct request_queue *q,unsigned int opt);extern void blk_set_default_limits (struct queue_limits *lim);
Signature · 1 line
Jens Axboe