]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SCSI] add missing scan mutex to scsi_scan_target()
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 26 Jul 2005 14:18:45 +0000 (10:18 -0400)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 9 Sep 2005 15:24:31 +0000 (10:24 -0500)
commite517d3133f62c27b211f305a6dbd6f6ccac0db1b
treed427be7f70d9467d123063a8f547822e54ca1d2f
parentcaf39e87cc1182f7dae84eefc43ca14d54c78ef9
[SCSI] add missing scan mutex to scsi_scan_target()

This patch (as543) adds a private entry point to scsi_scan_target, for use
when the caller already owns the scan_mutex, and updates the kerneldoc for
that routine (which was badly out-of-date).  It converts scsi_scan_channel
to use the new entry point.  Lastly, it modifies scsi_get_host_dev to make
it acquire the scan_mutex, necessary since the routine adds a new
scsi_device even if it doesn't do any actual scanning.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_scan.c