aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2026-10-06 22:46:03 +0000
committerWarner Losh <imp@FreeBSD.org>2026-10-06 22:50:38 +0000
commitab7249c288a4d7d09c88f4de705b58a2afbf35f9 (patch)
tree5a621b5a520b2568052d3c7ba9637ad5745ca0d1
parent7845cf8de8db3f6dd60a69379907b51b80123eae (diff)
cam: Assert we have the periph lock when updating the iosched statsHEADmain
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D60350
-rw-r--r--sys/cam/cam_iosched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c
index 822adffc93e5..74e66c6eedda 100644
--- a/sys/cam/cam_iosched.c
+++ b/sys/cam/cam_iosched.c
@@ -1775,7 +1775,9 @@ cam_iosched_bio_update_stats(struct cam_iosched_softc *isc, struct bio *bp,
union ccb *done_ccb)
{
int retval = 0;
+
#ifdef CAM_IOSCHED_DYNAMIC
+ cam_periph_assert(isc->periph, MA_OWNED);
if (!do_dynamic_iosched)
return retval;