|
@@ -1571,11 +1571,6 @@ static int iscsi_command ( struct scsi_device *scsi,
|
1571
|
1571
|
return 0;
|
1572
|
1572
|
}
|
1573
|
1573
|
|
1574
|
|
-static int iscsi_detached_command ( struct scsi_device *scsi __unused,
|
1575
|
|
- struct scsi_command *command __unused ) {
|
1576
|
|
- return -ENODEV;
|
1577
|
|
-}
|
1578
|
|
-
|
1579
|
1574
|
/**
|
1580
|
1575
|
* Shut down iSCSI interface
|
1581
|
1576
|
*
|
|
@@ -1588,7 +1583,7 @@ void iscsi_detach ( struct scsi_device *scsi ) {
|
1588
|
1583
|
xfer_nullify ( &iscsi->socket );
|
1589
|
1584
|
iscsi_close_connection ( iscsi, 0 );
|
1590
|
1585
|
process_del ( &iscsi->process );
|
1591
|
|
- scsi->command = iscsi_detached_command;
|
|
1586
|
+ scsi->command = scsi_detached_command;
|
1592
|
1587
|
ref_put ( scsi->backend );
|
1593
|
1588
|
scsi->backend = NULL;
|
1594
|
1589
|
}
|