forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-4.10/block' of git://git.kernel.dk/linux-block
Pull block layer updates from Jens Axboe: "This is the main block pull request this series. Contrary to previous release, I've kept the core and driver changes in the same branch. We always ended up having dependencies between the two for obvious reasons, so makes more sense to keep them together. That said, I'll probably try and keep more topical branches going forward, especially for cycles that end up being as busy as this one. The major parts of this pull request is: - Improved support for O_DIRECT on block devices, with a small private implementation instead of using the pig that is fs/direct-io.c. From Christoph. - Request completion tracking in a scalable fashion. This is utilized by two components in this pull, the new hybrid polling and the writeback queue throttling code. - Improved support for polling with O_DIRECT, adding a hybrid mode that combines pure polling with an initial sleep. From me. - Support for automatic throttling of writeback queues on the block side. This uses feedback from the device completion latencies to scale the queue on the block side up or down. From me. - Support from SMR drives in the block layer and for SD. From Hannes and Shaun. - Multi-connection support for nbd. From Josef. - Cleanup of request and bio flags, so we have a clear split between which are bio (or rq) private, and which ones are shared. From Christoph. - A set of patches from Bart, that improve how we handle queue stopping and starting in blk-mq. - Support for WRITE_ZEROES from Chaitanya. - Lightnvm updates from Javier/Matias. - Supoort for FC for the nvme-over-fabrics code. From James Smart. - A bunch of fixes from a whole slew of people, too many to name here" * 'for-4.10/block' of git://git.kernel.dk/linux-block: (182 commits) blk-stat: fix a few cases of missing batch flushing blk-flush: run the queue when inserting blk-mq flush elevator: make the rqhash helpers exported blk-mq: abstract out blk_mq_dispatch_rq_list() helper blk-mq: add blk_mq_start_stopped_hw_queue() block: improve handling of the magic discard payload blk-wbt: don't throttle discard or write zeroes nbd: use dev_err_ratelimited in io path nbd: reset the setup task for NBD_CLEAR_SOCK nvme-fabrics: Add FC LLDD loopback driver to test FC-NVME nvme-fabrics: Add target support for FC transport nvme-fabrics: Add host support for FC transport nvme-fabrics: Add FC transport LLDD api definitions nvme-fabrics: Add FC transport FC-NVME definitions nvme-fabrics: Add FC transport error codes to nvme.h Add type 0x28 NVME type code to scsi fc headers nvme-fabrics: patch target code in prep for FC transport support nvme-fabrics: set sqe.command_id in core not transports parser: add u64 number parser nvme-rdma: align to generic ib_event logging helper ...
- Loading branch information
Showing
225 changed files
with
14,275 additions
and
3,091 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,3 +235,45 @@ Description: | |
write_same_max_bytes is 0, write same is not supported | ||
by the device. | ||
|
||
What: /sys/block/<disk>/queue/write_zeroes_max_bytes | ||
Date: November 2016 | ||
Contact: Chaitanya Kulkarni <[email protected]> | ||
Description: | ||
Devices that support write zeroes operation in which a | ||
single request can be issued to zero out the range of | ||
contiguous blocks on storage without having any payload | ||
in the request. This can be used to optimize writing zeroes | ||
to the devices. write_zeroes_max_bytes indicates how many | ||
bytes can be written in a single write zeroes command. If | ||
write_zeroes_max_bytes is 0, write zeroes is not supported | ||
by the device. | ||
|
||
What: /sys/block/<disk>/queue/zoned | ||
Date: September 2016 | ||
Contact: Damien Le Moal <[email protected]> | ||
Description: | ||
zoned indicates if the device is a zoned block device | ||
and the zone model of the device if it is indeed zoned. | ||
The possible values indicated by zoned are "none" for | ||
regular block devices and "host-aware" or "host-managed" | ||
for zoned block devices. The characteristics of | ||
host-aware and host-managed zoned block devices are | ||
described in the ZBC (Zoned Block Commands) and ZAC | ||
(Zoned Device ATA Command Set) standards. These standards | ||
also define the "drive-managed" zone model. However, | ||
since drive-managed zoned block devices do not support | ||
zone commands, they will be treated as regular block | ||
devices and zoned will report "none". | ||
|
||
What: /sys/block/<disk>/queue/chunk_sectors | ||
Date: September 2016 | ||
Contact: Hannes Reinecke <[email protected]> | ||
Description: | ||
chunk_sectors has different meaning depending on the type | ||
of the disk. For a RAID device (dm-raid), chunk_sectors | ||
indicates the size in 512B sectors of the RAID volume | ||
stripe segment. For a zoned block device, either | ||
host-aware or host-managed, chunk_sectors indicates the | ||
size of 512B sectors of the zones of the device, with | ||
the eventual exception of the last zone of the device | ||
which may be smaller. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,20 @@ When read, this file shows the total number of block IO polls and how | |
many returned success. Writing '0' to this file will disable polling | ||
for this device. Writing any non-zero value will enable this feature. | ||
|
||
io_poll_delay (RW) | ||
------------------ | ||
If polling is enabled, this controls what kind of polling will be | ||
performed. It defaults to -1, which is classic polling. In this mode, | ||
the CPU will repeatedly ask for completions without giving up any time. | ||
If set to 0, a hybrid polling mode is used, where the kernel will attempt | ||
to make an educated guess at when the IO will complete. Based on this | ||
guess, the kernel will put the process issuing IO to sleep for an amount | ||
of time, before entering a classic poll loop. This mode might be a | ||
little slower than pure classic polling, but it will be more efficient. | ||
If set to a value larger than 0, the kernel will put the process issuing | ||
IO to sleep for this amont of microseconds before entering classic | ||
polling. | ||
|
||
iostats (RW) | ||
------------- | ||
This file is used to control (on/off) the iostats accounting of the | ||
|
@@ -169,5 +183,14 @@ This is the number of bytes the device can write in a single write-same | |
command. A value of '0' means write-same is not supported by this | ||
device. | ||
|
||
wb_lat_usec (RW) | ||
---------------- | ||
If the device is registered for writeback throttling, then this file shows | ||
the target minimum read latency. If this latency is exceeded in a given | ||
window of time (see wb_window_usec), then the writeback throttling will start | ||
scaling back writes. Writing a value of '0' to this file disables the | ||
feature. Writing a value of '-1' to this file resets the value to the | ||
default setting. | ||
|
||
|
||
Jens Axboe <[email protected]>, February 2009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8766,6 +8766,16 @@ L: [email protected] | |
S: Supported | ||
F: drivers/nvme/target/ | ||
|
||
NVM EXPRESS FC TRANSPORT DRIVERS | ||
M: James Smart <[email protected]> | ||
L: [email protected] | ||
S: Supported | ||
F: include/linux/nvme-fc.h | ||
F: include/linux/nvme-fc-driver.h | ||
F: drivers/nvme/host/fc.c | ||
F: drivers/nvme/target/fc.c | ||
F: drivers/nvme/target/fcloop.c | ||
|
||
NVMEM FRAMEWORK | ||
M: Srinivas Kandagatla <[email protected]> | ||
M: Maxime Ripard <[email protected]> | ||
|
@@ -9656,8 +9666,8 @@ F: arch/mips/boot/dts/pistachio/ | |
F: arch/mips/configs/pistachio*_defconfig | ||
|
||
PKTCDVD DRIVER | ||
M: Jiri Kosina <[email protected]> | ||
S: Maintained | ||
S: Orphan | ||
M: [email protected] | ||
F: drivers/block/pktcdvd.c | ||
F: include/linux/pktcdvd.h | ||
F: include/uapi/linux/pktcdvd.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.