Bug 688482

Summary: udev bug causes excessive SCSI bus resets (fixed upstream)
Product: [openSUSE] openSUSE 11.4 Reporter: Matthias Andree <matthias.andree>
Component: KernelAssignee: Kay Sievers <kasievers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: jeffm
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Matthias Andree 2011-04-19 14:52:38 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16

Greetings,

udev-166 as shipped with openSUSE 11.4, and the version shipped in 11.3, together with the respective distro kernels, cause excessive SCSI bus resets.

This happens as udev's daemons (ata_id) to be precise probes an old CD-ROM drive (Plextor PX-32TS SCSI) in my case regularly (attached to a Tekram DC-390U2W aka. LSI Logic 53C89* based adaptor) and causes the SCSI engines to go out of synch (log excerpt below).

I'm tagging this critical because it can cause data loss if, for instance, the SCSI bus gets reset during a running backup to a drive on the same host adaptor.

The relevant change is also in the udev ChangeLog:

"rules: run ata_id only on SPC-3 or later optical drives"
<http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;f=ChangeLog;h=d62ecbd76e9a4ae686070be79c2183a4c20e388c;hb=HEAD#l35>


This is fixed in udev upstream release 167, and my own packages at https://build.opensuse.org/project/show?project=home%3Amandree%3Abranches%3AopenSUSE%3A11.4%3AUpdate%3ATest fix that problem for me.  

Log excerpt: 

Apr 19 15:35:40 merlin kernel: [  517.194743] sr 4:0:2:0: phase change 2-1 12@37237f5c resid=6.
Apr 19 15:36:11 merlin kernel: [  548.064034] sr 4:0:2:0: [sr1] ABORT operation started
Apr 19 15:36:16 merlin kernel: [  553.064019] sr 4:0:2:0: ABORT operation timed-out.
Apr 19 15:36:16 merlin kernel: [  553.064058] sr 4:0:2:0: [sr1] DEVICE RESET operation started
Apr 19 15:36:21 merlin kernel: [  558.064022] sr 4:0:2:0: DEVICE RESET operation timed-out.
Apr 19 15:36:21 merlin kernel: [  558.064063] sr 4:0:2:0: [sr1] BUS RESET operation started
Apr 19 15:36:21 merlin kernel: [  558.066278] sym0: SCSI BUS reset detected.
Apr 19 15:36:21 merlin kernel: [  558.068002] sym0: SCSI BUS has been reset.
Apr 19 15:36:21 merlin kernel: [  558.070513] sr 4:0:2:0: BUS RESET operation complete.


Reproducible: Always

Steps to Reproduce:
1. attach SCSI host adaptor and old CD-ROM drive
2. boot openSUSE 11.3 or 11.4
3. wait until you see the logging or bus resets on the drives
Comment 1 Kay Sievers 2011-04-26 20:00:54 UTC
Merge bugs.

*** This bug has been marked as a duplicate of bug 679277 ***