summaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorShaun Tancheff <shaun@tancheff.com>2016-08-24 20:08:14 +0200
committerTejun Heo <tj@kernel.org>2016-08-25 17:26:48 +0200
commitef2d7392c4ece5c3cd12a6c7ca9366cd8f189aff (patch)
tree0f627a1746582b8443f3377718c58d426ef3871c /net/core/net-sysfs.c
parentlibata: Add support for SCT Write Same (diff)
downloadlinux-ef2d7392c4ece5c3cd12a6c7ca9366cd8f189aff.tar.xz
linux-ef2d7392c4ece5c3cd12a6c7ca9366cd8f189aff.zip
libata: SCT Write Same / DSM Trim
Correct handling of devices with sector_size other that 512 bytes. In the case of a 4Kn device sector_size it is possible to describe a much larger DSM Trim than the current fixed default of 512 bytes. This patch assumes the minimum descriptor is sector_size and fills out the descriptor accordingly. The ACS-2 specification is quite clear that the DSM command payload is sized as number of 512 byte transfers so a 4Kn device will operate correctly without this patch. Signed-off-by: Shaun Tancheff <shaun.tancheff@seagate.com> Acked-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'net/core/net-sysfs.c')
0 files changed, 0 insertions, 0 deletions