mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
Merge of r2117:
Scan host only if it has LUNs git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2118 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1588,7 +1588,9 @@ static int __scst_local_add_adapter(struct scst_local_tgt *tgt,
|
||||
if (!locked)
|
||||
mutex_unlock(&scst_local_mutex);
|
||||
|
||||
scsi_scan_target(&sess->shost->shost_gendev, 0, 0, SCAN_WILD_CARD, 1);
|
||||
if (scst_initiator_has_luns(tgt->scst_tgt, initiator_name))
|
||||
scsi_scan_target(&sess->shost->shost_gendev, 0, 0,
|
||||
SCAN_WILD_CARD, 1);
|
||||
|
||||
out:
|
||||
TRACE_EXIT_RES(res);
|
||||
|
||||
Reference in New Issue
Block a user