linux-stable/drivers/scsi
Kai Mäkisara 2bd08f26f0 scsi: st: Restore some drive settings after reset
[ Upstream commit 7081dc75df ]

Some of the allowed operations put the tape into a known position to
continue operation assuming only the tape position has changed.  But reset
sets partition, density and block size to drive default values. These
should be restored to the values before reset.

Normally the current block size and density are stored by the drive.  If
the settings have been changed, the changed values have to be saved by the
driver across reset.

Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi>
Link: https://lore.kernel.org/r/20250120194925.44432-2-Kai.Makisara@kolumbus.fi
Reviewed-by: John Meneghini <jmeneghi@redhat.com>
Tested-by: John Meneghini <jmeneghi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-04 14:37:05 +02:00
..
aacraid
aic7xxx
aic94xx
arcmsr
arm
be2iscsi
bfa
bnx2fc
bnx2i
csiostor
cxgbi
cxlflash
device_handler
dpt
esas2r
fcoe
fnic
hisi_sas scsi: hisi_sas: Add cond_resched() for no forced preemption model 2024-12-14 19:48:30 +01:00
ibmvscsi
ibmvscsi_tgt
isci
libfc
libsas
lpfc scsi: lpfc: Handle duplicate D_IDs in ndlp search-by D_ID routine 2025-06-04 14:37:05 +02:00
megaraid scsi: megaraid_sas: Fix for a potential deadlock 2025-01-09 13:24:58 +01:00
mpt3sas scsi: mpt3sas: Send a diag reset if target reset fails 2025-06-04 14:37:03 +02:00
mvsas
pcmcia
pm8001 scsi: pm80xx: Set phy_attached to zero when device is gone 2025-05-02 07:41:20 +02:00
qedf
qedi scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() 2024-12-14 19:47:59 +01:00
qla2xxx scsi: qla2xxx: Move FCE Trace buffer allocation to user control 2025-03-13 12:47:10 +01:00
qla4xxx
smartpqi
snic
sym53c8xx_2
ufs scsi: ufs: bsg: Set bsg_queue to NULL after removal 2025-05-02 07:41:08 +02:00
.gitignore
3w-9xxx.c
3w-9xxx.h
3w-sas.c
3w-sas.h
3w-xxxx.c
3w-xxxx.h
53c700_d.h_shipped
53c700.c
53c700.h
53c700.scr
a100u2w.c
a100u2w.h
a2091.c
a2091.h
a3000.c
a3000.h
a4000t.c
advansys.c
aha152x.c
aha152x.h
aha1542.c
aha1542.h
aha1740.c
aha1740.h
am53c974.c
atari_scsi.c
atp870u.c
atp870u.h
BusLogic.c
BusLogic.h
bvme6000_scsi.c
ch.c
constants.c
dc395x.c
dc395x.h
dmx3191d.c
dpt_i2o.c
dpti.h
esp_scsi.c
esp_scsi.h
fdomain_isa.c
fdomain_pci.c
fdomain.c
fdomain.h
FlashPoint.c
g_NCR5380.c
gdth_ioctl.h
gdth_proc.c
gdth_proc.h
gdth.c
gdth.h
gvp11.c
gvp11.h
hosts.c
hpsa_cmd.h
hpsa.c
hpsa.h
hptiop.c
hptiop.h
imm.c
imm.h
initio.c
initio.h
ipr.c
ipr.h
ips.c
ips.h
iscsi_boot_sysfs.c
iscsi_tcp.c
iscsi_tcp.h
jazz_esp.c
Kconfig
lasi700.c
libiscsi_tcp.c
libiscsi.c
mac53c94.c
mac53c94.h
mac_esp.c
mac_scsi.c
Makefile
megaraid.c
megaraid.h
mesh.c
mesh.h
mvme16x_scsi.c
mvme147.c
mvme147.h
mvumi.c
mvumi.h
myrb.c
myrb.h
myrs.c
myrs.h
ncr53c8xx.c
ncr53c8xx.h
NCR5380.c
NCR5380.h
nsp32_debug.c
nsp32_io.h
nsp32.c
nsp32.h
pmcraid.c
pmcraid.h
ppa.c
ppa.h
ps3rom.c
qla1280.c scsi: qla1280: Fix kernel oops when debug level > 2 2025-04-10 14:30:49 +02:00
qla1280.h scsi: qla1280: Fix hw revision numbering for ISP1020/1040 2025-01-09 13:24:57 +01:00
qlogicfas408.c
qlogicfas408.h
qlogicfas.c
qlogicpti.c
qlogicpti.h
raid_class.c
script_asm.pl
scsi_common.c
scsi_debug.c
scsi_debugfs.c
scsi_debugfs.h
scsi_devinfo.c
scsi_dh.c
scsi_error.c
scsi_ioctl.c
scsi_lib_dma.c
scsi_lib.c scsi: core: Fix scsi_mode_select() buffer length handling 2024-12-14 19:48:35 +01:00
scsi_logging.c
scsi_logging.h
scsi_netlink.c
scsi_pm.c
scsi_priv.h
scsi_proc.c
scsi_sas_internal.h
scsi_scan.c
scsi_sysctl.c
scsi_sysfs.c
scsi_trace.c
scsi_transport_api.h
scsi_transport_fc.c
scsi_transport_iscsi.c scsi: iscsi: Fix missing scsi_host_put() in error path 2025-05-02 07:40:59 +02:00
scsi_transport_sas.c
scsi_transport_spi.c
scsi_transport_srp.c
scsi.c
scsi.h
scsicam.c
sd_dif.c
sd_zbc.c
sd.c block: remove the update_bdev parameter to set_capacity_revalidate_and_notify 2025-02-01 18:22:24 +01:00
sd.h
sense_codes.h
ses.c
sg.c scsi: sg: Fix slab-use-after-free read in sg_release() 2025-02-01 18:22:31 +01:00
sgiwd93.c
sim710.c
sni_53c710.c
sr_ioctl.c
sr_vendor.c
sr.c
sr.h
st_options.h
st.c scsi: st: Restore some drive settings after reset 2025-06-04 14:37:05 +02:00
st.h scsi: st: Restore some drive settings after reset 2025-06-04 14:37:05 +02:00
stex.c
storvsc_drv.c scsi: storvsc: Set correct data length for sending SCSI command without payload 2025-03-13 12:47:10 +01:00
sun3_scsi_vme.c
sun3_scsi.c
sun3x_esp.c
sun_esp.c
virtio_scsi.c
vmw_pvscsi.c
vmw_pvscsi.h
wd33c93.c
wd33c93.h
wd719x.c
wd719x.h
xen-scsifront.c
zalon.c
zorro7xx.c
zorro_esp.c