|
@@ -394,8 +394,7 @@ static void scsicmd_close ( struct scsi_command *scsicmd, int rc ) {
|
394
|
394
|
}
|
395
|
395
|
|
396
|
396
|
/* Shut down interfaces */
|
397
|
|
- intf_shutdown ( &scsicmd->scsi, rc );
|
398
|
|
- intf_shutdown ( &scsicmd->block, rc );
|
|
397
|
+ intfs_shutdown ( rc, &scsicmd->scsi, &scsicmd->block, NULL );
|
399
|
398
|
}
|
400
|
399
|
|
401
|
400
|
/**
|
|
@@ -840,9 +839,8 @@ static void scsidev_close ( struct scsi_device *scsidev, int rc ) {
|
840
|
839
|
process_del ( &scsidev->process );
|
841
|
840
|
|
842
|
841
|
/* Shut down interfaces */
|
843
|
|
- intf_shutdown ( &scsidev->block, rc );
|
844
|
|
- intf_shutdown ( &scsidev->scsi, rc );
|
845
|
|
- intf_shutdown ( &scsidev->ready, rc );
|
|
842
|
+ intfs_shutdown ( rc, &scsidev->block, &scsidev->scsi, &scsidev->ready,
|
|
843
|
+ NULL );
|
846
|
844
|
|
847
|
845
|
/* Shut down any remaining commands */
|
848
|
846
|
list_for_each_entry_safe ( scsicmd, tmp, &scsidev->cmds, list ) {
|