aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2014-12-05 08:58:03 -0500
committerChristoph Hellwig <hch@lst.de>2014-12-30 13:30:38 +0100
commite461338b6cd4074e39a0d5fdd1dc5582fbca1520 (patch)
treefa0f9d67f5dc0e39a5bad80e80a18ac1d4eb9a86 /drivers/scsi/fnic
parentLinux 3.19-rc2 (diff)
downloadlinux-dev-e461338b6cd4074e39a0d5fdd1dc5582fbca1520.tar.xz
linux-dev-e461338b6cd4074e39a0d5fdd1dc5582fbca1520.zip
sd: tweak discard heuristics to work around QEMU SCSI issue
7985090aa020 changed the discard heuristics to give preference to the WRITE SAME commands that (unlike UNMAP) guarantee deterministic results. Ming Lei discovered that QEMU SCSI's WRITE SAME implementation internally relied on limits that were only communicated for the UNMAP case. And therefore discard commands backed by WRITE SAME would fail. Tweak the heuristics so we still pick UNMAP in the LBPRZ=0 case and only prefer the WRITE SAME variants if the device has the LBPRZ flag set. Reported-by: Ming Lei <ming.lei@canonical.com> Tested-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/fnic')
0 files changed, 0 insertions, 0 deletions