Use of the flag device->was_reset set by error handling is not necessary any more. It is enough to use the UNIT ATTENTION sense data to recognize that the device has been reset. The first patch removes the code using was_reset. Device reset sets drive paraneters to default values. If the parameters have been changed by the driver, they must be restored after reset. The second patch does this for those MTIOCTOP operations that re-position the tape in the drive. The parameters are not reset for those operations that start a new tape session (e.g., MTLOAD). The patches apply over 6.12.0-rcx + the three reset patches sent on November 6. Kai Mäkisara (2): Remove use of device->was_reset Restore some drive settings after reset drivers/scsi/st.c | 35 +++++++++++++++++++++++++++-------- drivers/scsi/st.h | 2 ++ 2 files changed, 29 insertions(+), 8 deletions(-) -- 2.43.0