Bug 60711 - USB drive no longer detected as removable storage media
Summary: USB drive no longer detected as removable storage media
Status: NEW
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: SCSI (show other bugs)
Hardware: i386 Linux
: P1 low
Assignee: linux-scsi@vger.kernel.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-07 08:15 UTC by trallala
Modified: 2013-11-13 16:19 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.10.3
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
DMESG excerpt from success and failure (2.66 KB, text/plain)
2013-08-07 08:15 UTC, trallala
Details

Description trallala 2013-08-07 08:15:30 UTC
Created attachment 107132 [details]
DMESG excerpt from success and failure

This patch

commit 98dcc2946adbe4349ef1ef9b99873b912831edd4
Author: Martin K. Petersen <martin.petersen@oracle.com>
Date:   Thu Jun 6 22:15:55 2013 -0400
SCSI: sd: Update WRITE SAME heuristics
commit 66c28f97120e8a621afd5aa7a31c4b85c547d33d upstream.

introduced with kernel patch-3.10.3 effectively breaks detection of some USB drives as removable storage media. The concerned drives are recognized by the SCSI layer, but are no longer available as removable storage (see attachment).

Commenting out the following if-clause from sd.c (function sd_read_write_same)
        if (!scsi_get_vpd_page(sdev, 0x89, buffer, SD_BUF_SIZE))
            sdev->no_write_same = 1;
makes anything working as expected.

Note You need to log in before you can comment on or make changes to this bug.