Resurrect sdev during scanning
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | Add scsi_destroy_device()drivers/ include/ | +7 | 0 replies | |
| 2/9 | Improve error messages in scsi_sysfs_add_sdev()drivers/ | +4 | 0 replies | |
| 3/9 | Remove stale put_device() from scsi_sysfs_add_sdev()drivers/ | +0 | 0 replies | |
| 4/9 | Free sdev class device from release functiondrivers/ drivers/ | +22 | 0 replies | |
| 5/9 | Fixup LLDDs to check for valid hostdata pointerdrivers/ drivers/ drivers/ +3 more | +17 | 1 reply | |
| 6/9 | Implement scsi_configure_device()drivers/ | +44 | 0 replies | |
| 7/9 | Remove obsolete scsi_destroy_sdev() functiondrivers/ | +0 | 0 replies | |
| 8/9 | Implement scsi_resurrect_device()drivers/ drivers/ drivers/ | +56 | 0 replies | |
| 9/9 | Leftoversdrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] Resurrect sdev during scanning
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
Signature · 8 lines
Dr. Hannes Reinecke zSeries & Storage [email protected] +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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html