[PATCH 0/9] Resurrect sdev during scanning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi James,

this is a patchset to address the outstanding 'sdev oops during
scanning' issue. Problem is that any sdev in state 'SDEV_DEL' is still
visible to the host until the refcount drops to zero. When a scan occurs
during this time we access a half-initialized sdev and all hell breaks
loose.

So to address this issue this patchset implements a
'scsi_resurrect_device()' function which will put an sdev in state
SDEV_DEL back to SDEV_RUNNING, thus allowing normal operations again.
In doing so I also had to clean up the sdev allocation and removal a bit
so that we're now more aligned to the state machine and the driver
core's device_initialize / device_add logic.

The entire patchset has been tested quite heavily with SLES10 SP1.

Comments etc. welcome.

Otherwise, please apply.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@xxxxxxx			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux