Module Name: src
Committed By: maya
Date: Sun Feb 26 10:58:47 UTC 2017
Modified Files:
src/sys/dev/scsipi: scsipi_base.h
Log Message:
Add a DEBUG assert for the problem noted in PR kern/51731
of some drivers not sufficiently locking.
The relevant drivers might not work, but if someone gets around to them
then the problem could be visible.
sd doesn't trip the assert.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/scsipi/scsipi_base.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/scsipi/scsipi_base.h
diff -u src/sys/dev/scsipi/scsipi_base.h:1.23 src/sys/dev/scsipi/scsipi_base.h:1.24
--- src/sys/dev/scsipi/scsipi_base.h:1.23 Sun Nov 20 15:37:19 2016
+++ src/sys/dev/scsipi/scsipi_base.h Sun Feb 26 10:58:47 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: scsipi_base.h,v 1.23 2016/11/20 15:37:19 mlelstv Exp $ */
+/* $NetBSD: scsipi_base.h,v 1.24 2017/02/26 10:58:47 maya Exp $ */
/*-
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -96,6 +96,7 @@ scsipi_make_xs_locked(struct scsipi_peri
struct buf *bp, int flags)
{
+ KDASSERT(mutex_owned(chan_mtx(periph->periph_channel)));
return scsipi_make_xs_internal(periph, cmd, cmdlen, data_addr,
datalen, retries, timeout, bp, flags | XS_CTL_NOSLEEP);
}