summaryrefslogtreecommitdiff
path: root/sys/scsi/st.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-01-25 21:40:36 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-01-25 21:40:36 +0000
commit10152ae6d1da1a3cb87035d35c259039a51e8bdc (patch)
tree2c4974a7a5799b205bb7f4bcc1704a62b3f15030 /sys/scsi/st.c
parentc0b3a16151ddd2c44caf6adf75e3683d8f2628ad (diff)
Ensure scsi_minphys() is always called on the physio() path.
Will allow simplification of individual driver *minphys() functions. ok jmatthew@ as part of larger diff
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r--sys/scsi/st.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index 30aafd4f2b5..c5589361b5c 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: st.c,v 1.172 2019/12/05 18:42:14 krw Exp $ */
+/* $OpenBSD: st.c,v 1.173 2020/01/25 21:40:35 krw Exp $ */
/* $NetBSD: st.c,v 1.71 1997/02/21 23:03:49 thorpej Exp $ */
/*
@@ -1007,6 +1007,8 @@ stminphys(struct buf *bp)
return;
(*st->sc_link->adapter->scsi_minphys)(bp, st->sc_link);
+ if (st->sc_link->adapter->scsi_minphys != scsi_minphys)
+ scsi_minphys(bp, st->sc_link);
device_unref(&st->sc_dev);
}