Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478698 - sys-kernel/gentoo-sources-3.10.3-r1 can't mount USB disks
Summary: sys-kernel/gentoo-sources-3.10.3-r1 can't mount USB disks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://git.kernel.org/cgit/linux/kern...
Whiteboard: gentoo-sources-3.5.10-r1
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2013-07-29 21:24 UTC by Andrés Becerra Sandoval
Modified: 2013-08-12 21:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
revert_scsi_sd_update_write_same_heuristics.patch (revert_scsi_sd_update_write_same_heuristics.patch,4.22 KB, patch)
2013-07-30 16:41 UTC, Jouni Kosonen
Details | Diff
Kernel messages (file_478698.txt,2.20 KB, text/plain)
2013-07-31 21:33 UTC, Toni Ballesta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrés Becerra Sandoval 2013-07-29 21:24:31 UTC
- Updated gentoo-sources from 3.10.2 to 3.10.3-r1 with identical .config
- Inserted a USB disk

Results:
 USB is not mounted, partitions in the disk can't be seen in /proc/partitions

I've found a similar bug report in Arch linux:

https://bbs.archlinux.org/viewtopic.php?id=167382
Comment 1 Andrés Becerra Sandoval 2013-07-29 21:26:31 UTC
Link to Arch bug report system:

https://bugs.archlinux.org/task/36296
Comment 2 Mike Pagano gentoo-dev 2013-07-29 23:37:41 UTC
Would you be willing to do a git-bisect to find the problem commit ?
Comment 3 Jouni Kosonen 2013-07-30 01:57:00 UTC
(In reply to Mike Pagano from comment #2)
> Would you be willing to do a git-bisect to find the problem commit ?

In http://marc.info/?l=linux-usb&m=137503976012984&w=2
Alan Stern ha identified the problematic commit as 
98dcc2946adb (SCSI: sd: Update WRITE SAME heuristics).
Comment 5 Andrés Becerra Sandoval 2013-07-30 14:11:20 UTC
(In reply to Jouni Kosonen from comment #4)
> Reverting 
> 
> http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/
> queue-3.10/scsi-sd-update-write-same-heuristics.
> patch?id=3fb98d4a1fc787247e38f468635435d7e1a6e6f4
> 
> did work for me, USB storage mounts again in 3.10.3-r1.

Jouni, 

How can I revert the patch?
Comment 6 Jouni Kosonen 2013-07-30 16:41:03 UTC
Created attachment 354634 [details, diff]
revert_scsi_sd_update_write_same_heuristics.patch

> How can I revert the patch?

This is the reverse of the patch linked in #4, 
apply manually using patch -p1 in /usr/src/linux or by saving in 
/etc/portage/patches/sys-kernel/gentoo-sources-3.10.3-r1/
and re-emerging the sources.
Comment 7 Andrés Becerra Sandoval 2013-07-30 19:10:58 UTC
(In reply to Jouni Kosonen from comment #6)
> Created attachment 354634 [details, diff] [details, diff]
> revert_scsi_sd_update_write_same_heuristics.patch
> 
> > How can I revert the patch?
> 
> This is the reverse of the patch linked in #4, 
> apply manually using patch -p1 in /usr/src/linux or by saving in 
> /etc/portage/patches/sys-kernel/gentoo-sources-3.10.3-r1/
> and re-emerging the sources.

It works for me now !
Comment 8 emil karlson 2013-07-31 21:08:41 UTC
http://www.spinics.net/lists/stable/msg16022.html this patch from linux-stable worked for me and will probably be included in upstream soonish.
Comment 9 Toni Ballesta 2013-07-31 21:33:44 UTC
Created attachment 354772 [details]
Kernel messages

Kernel messages from the 3.10.4-gentoo (same issue).
Comment 10 Jouni Kosonen 2013-08-04 17:27:48 UTC
(In reply to emil karlson from comment #8)
> http://www.spinics.net/lists/stable/msg16022.html this patch from 
> linux-stable worked for me and will probably be included in upstream soonish.

It looks like that fix was submitted for but not included in 3.10.5 upstream.
http://www.spinics.net/lists/stable/msg16353.html
Comment 11 Mike Pagano gentoo-dev 2013-08-06 14:58:43 UTC
This is now finally in linux-next. I will add to G-S for next release. (maybe I'll release a new version just for this).
Comment 12 Mike Pagano gentoo-dev 2013-08-06 16:23:46 UTC
Can someone test gs-3.10.5-r1 when it syncs down and just confirm that the issue is resolved, please?
Comment 13 Mike Pagano gentoo-dev 2013-08-06 16:24:26 UTC
Sorry for bugspam.
Comment 14 Jouni Kosonen 2013-08-06 17:05:48 UTC
Confirmed: for me 3.10.5-r1 does resolve the issue for both USB-2 and USB-3 devices.
Comment 15 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-08-12 21:23:59 UTC
Thank you for reporting.

(In reply to Jouni Kosonen from comment #14)
> Confirmed: for me 3.10.5-r1 does resolve the issue for both USB-2 and USB-3
> devices.

Thank you very much for testing; if someone still experiences this with the latest 3.10 version, then please reopen the bug or state clearly that you want to see the bug reopened and we'll do it for you.