-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: Introduce queue limits and sysfs for copy-offload support
Add device limits as sysfs entries, - copy_max_bytes (RW) - copy_max_hw_bytes (RO) Above limits help to split the copy payload in block layer. copy_max_bytes: maximum total length of copy in single payload. copy_max_hw_bytes: Reflects the device supported maximum limit. Signed-off-by: Nitesh Shetty <[email protected]> Signed-off-by: Kanchan Joshi <[email protected]> Signed-off-by: Anuj Gupta <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]>
- Loading branch information
Showing
4 changed files
with
113 additions
and
2 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 |
---|---|---|
|
@@ -218,6 +218,29 @@ Description: | |
last zone of the device which may be smaller. | ||
|
||
|
||
What: /sys/block/<disk>/queue/copy_max_bytes | ||
Date: May 2024 | ||
Contact: [email protected] | ||
Description: | ||
[RW] This is the maximum number of bytes that the block layer | ||
will allow for a copy request. This is always smaller or | ||
equal to the maximum size allowed by the hardware, indicated by | ||
'copy_max_hw_bytes'. An attempt to set a value higher than | ||
'copy_max_hw_bytes' will truncate this to 'copy_max_hw_bytes'. | ||
Writing '0' to this file will disable offloading copies for this | ||
device, instead copy is done via emulation. | ||
|
||
|
||
What: /sys/block/<disk>/queue/copy_max_hw_bytes | ||
Date: May 2024 | ||
Contact: [email protected] | ||
Description: | ||
[RO] This is the maximum number of bytes that the hardware | ||
will allow for single data copy request. | ||
A value of 0 means that the device does not support | ||
copy offload. | ||
|
||
|
||
What: /sys/block/<disk>/queue/crypto/ | ||
Date: February 2022 | ||
Contact: [email protected] | ||
|
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