summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorKai Mäkisara <Kai.Makisara@kolumbus.fi>2025-03-11 13:25:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-04 14:37:00 +0200
commit817491f4ebcfa3564e28b636398ac37e098d429a (patch)
tree5caa584effd13cbc0ad7fe9870de52815cff4ea1 /drivers/scsi
parentf9f14433b58f995c5487710b57b936cf847a22f2 (diff)
downloadlinux-817491f4ebcfa3564e28b636398ac37e098d429a.tar.gz
linux-817491f4ebcfa3564e28b636398ac37e098d429a.tar.bz2
linux-817491f4ebcfa3564e28b636398ac37e098d429a.zip
scsi: st: ERASE does not change tape location
[ Upstream commit ad77cebf97bd42c93ab4e3bffd09f2b905c1959a ] The SCSI ERASE command erases from the current position onwards. Don't clear the position variables. Signed-off-by: Kai Mäkisara <Kai.Makisara@kolumbus.fi> Link: https://lore.kernel.org/r/20250311112516.5548-3-Kai.Makisara@kolumbus.fi Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/st.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 47e59b74c09d..747e69abfcfc 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -2889,7 +2889,6 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon
timeout = STp->long_timeout * 8;
DEBC_printk(STp, "Erasing tape.\n");
- fileno = blkno = at_sm = 0;
break;
case MTSETBLK: /* Set block length */
case MTSETDENSITY: /* Set tape density */