sd_remove() called on a tape device - Linux 2.6.8.1 kernel
I'm running Fedora Core 2 with a ftp.kernel.org 2.6.8.1 kernel.
I've noticed that for some reason, when I reboot the system, it sends a SCSI Synchronize Cache command to a tape device I have attached to the system. This occurs at the end of the shutdown process just before doing a reset into the BIOS (or whatever).
The tape is at LUN 0 and a disk is at LUN 7, the only scsi devices on this system (hanging off an LSI Logic FC controller). The main disk is an IDE.
Is there anything I can do to further track this down? I know that for some reason the sd_remove() routine is being called rather than st_remove() - but not sure why. The system recognises the tape quite happily and reads/writes to it, so it knows what's at that scsi bus location.
Regards
Burn Alting
Quoted 7 lines · Burn Alting
I'm running Fedora Core 2 with a ftp.kernel.org 2.6.8.1 kernel.
I've noticed that for some reason, when I reboot the system, it sends a SCSI Synchronize Cache command to a tape device I have attached to the system. This occurs at the end of the shutdown process just before doing a reset into the BIOS (or whatever).
Quoted 7 lines
The tape is at LUN 0 and a disk is at LUN 7, the only scsi devices on this system (hanging off an LSI Logic FC controller). The main disk is an IDE.
Is there anything I can do to further track this down? I know that for
Add a call to WARN_ON to the locations that can send the SYNCHRONIZE CACHE command. That will force a stack trace.
Disable PM poweroff before you halt the system so that you can see the trace.
Quoted 15 lines
some reason the
sd_remove()routine is being called rather thanst_remove()- but not sure why. The system recognises the tape quite happily and reads/writes to it, so it knows what's at that scsi bus location.Regards
Burn Alting-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 13 lines · Nathan Bryant
Quoted 11 lines · Burn Alting
I'm running Fedora Core 2 with a ftp.kernel.org 2.6.8.1 kernel.
I've noticed that for some reason, when I reboot the system, it sends a SCSI Synchronize Cache command to a tape device I have attached to the system. This occurs at the end of the shutdown process just before doing a reset into the BIOS (or whatever).
The tape is at LUN 0 and a disk is at LUN 7, the only scsi devices on this system (hanging off an LSI Logic FC controller). The main disk is an IDE.
Quoted 11 lines
Quoted 3 lines
Is there anything I can do to further track this down? I know that for
Add a call to
WARN_ONto the locations that can send the SYNCHRONIZE CACHE command. That will force a stack trace.Disable PM poweroff before you halt the system so that you can see the trace.
Quoted 4 lines
some reason the
sd_remove()routine is being called rather thanst_remove()- but not sure why. The system recognises the tape quite happily and reads/writes to it, so it knows what's at that scsi bus location.
Burn,
The scsi_debug driver can simulate tape drives (although the streaming command set support is weak). For example:
# modprobe scsi_debug ptype=1 opts=1
will simulate one tape drive and log commands sent to it.
Doug Gilbert