summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.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/sd.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/sd.c')
-rw-r--r--sys/scsi/sd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index 09eb0d0d22b..53316de093f 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.306 2019/12/08 16:38:45 krw Exp $ */
+/* $OpenBSD: sd.c,v 1.307 2020/01/25 21:40:35 krw Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -833,6 +833,8 @@ sdminphys(struct buf *bp)
}
(*link->adapter->scsi_minphys)(bp, link);
+ if (link->adapter->scsi_minphys != scsi_minphys)
+ scsi_minphys(bp, link);
device_unref(&sc->sc_dev);
}