From: <vl...@us...> - 2008-10-23 12:58:47
|
Revision: 533 http://scst.svn.sourceforge.net/scst/?rev=533&view=rev Author: vlnb Date: 2008-10-23 12:03:22 +0000 (Thu, 23 Oct 2008) Log Message: ----------- Replace SCSI_TRY_RESET_BUS by SCSI_TRY_RESET_TARGET, which is more appropriate for TARGET RESET TM Modified Paths: -------------- trunk/scst/src/scst_targ.c Modified: trunk/scst/src/scst_targ.c =================================================================== --- trunk/scst/src/scst_targ.c 2008-10-22 21:45:16 UTC (rev 532) +++ trunk/scst/src/scst_targ.c 2008-10-23 12:03:22 UTC (rev 533) @@ -4215,9 +4215,13 @@ list_for_each_entry(dev, &host_devs, tm_dev_list_entry) { /* dev->scsi_dev must be non-NULL here */ TRACE(TRACE_MGMT, "Resetting host %d bus ", - dev->scsi_dev->host->host_no); + dev->scsi_dev->host->host_no); +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) + rc = scsi_reset_provider(dev->scsi_dev, SCSI_TRY_RESET_TARGET); +#else rc = scsi_reset_provider(dev->scsi_dev, SCSI_TRY_RESET_BUS); - TRACE(TRACE_MGMT, "Result of host %d bus reset: %s", +#endif + TRACE(TRACE_MGMT, "Result of host %d target reset: %s", dev->scsi_dev->host->host_no, (rc == SUCCESS) ? "SUCCESS" : "FAILED"); #if 0 /* scsi_reset_provider() returns very weird status, so let's always succeed */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |