blk_queue_max_hw_sectors(9)

blk_queue_max_hw_sectors9

Set max sectors for a request for this queue

Usage

void blk_queue_max_hw_sectors(struct request_queue * q, unsigned int max_hw_sectors);

Arguments

q

the request queue for the device

max_hw_sectors

max hardware sectors in the usual 512b unit

Overview

Enables a low level driver to set a hard upper limit, max_hw_sectors, on the size of requests. max_hw_sectors is set by the device driver based upon the capabilities of the I/O controller.

max_dev_sectors is a hard limit imposed by the storage device for READ/WRITE requests. It is set by the disk driver.

max_sectors is a soft limit imposed by the block layer for filesystem type requests. This value can be overridden on a per-device basis in /sys/block/<device>/queue/max_sectors_kb. The soft limit can not exceed max_hw_sectors.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.