[PATCH 0/2] scsi: st: More reset patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux