[Raring][PATCH 0/2] dm-crypt: never use write same

joseph.salisbury at canonical.com joseph.salisbury at canonical.com
Wed Dec 19 22:52:37 UTC 2012


From: Joseph Salisbury <joseph.salisbury at canonical.com>

BugLink: http://bugs.launchpad.net/bugs/1089818


== Raring Justification ==

dm-crypt is not compatible with WRITE SAME, which was introduced in v3.7-rc8 in upstream commit 5db44863b.  This bug was originally fixed by reverting 5db44863b.  However, the bug is now addressed by updating dm-crypt to not use WRITE SAME.  This has also been discussed upstream.  The second patch will be submitted to v3.7 stable, as well as v3.8.  

== Fix ==

The first patch reverts commit: 6bedd03c.
The second patch disables WRITE SAME in dm-crypt.


== Impact ==

Without this patch, raring kernels will panic when trying to use WRITE SAME from dm-crypt.

== Test Case ==
    
A test kernel was built with this patch set. I was able to reproduce this bug.  I confirmed that this patch set resolves the bug.



Joseph Salisbury (2):
  Revert "Revert "[SCSI] sd: Implement support for WRITE SAME""
  dm-crypt: never use write same

 drivers/ata/libata-scsi.c      |    1 +
 drivers/firewire/sbp2.c        |    1 +
 drivers/md/dm-crypt.c          |    7 ++
 drivers/scsi/scsi_lib.c        |   22 +++--
 drivers/scsi/sd.c              |  172 +++++++++++++++++++++++++++++++++++++---
 drivers/scsi/sd.h              |    7 ++
 drivers/usb/storage/scsiglue.c |    3 +
 include/scsi/scsi_device.h     |    1 +
 8 files changed, 198 insertions(+), 16 deletions(-)

-- 
1.7.9.5





More information about the kernel-team mailing list