summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-05-03 10:58:05 +0000
committerjeff <jeff@FreeBSD.org>2005-05-03 10:58:05 +0000
commit79452537e3d4c5c4604a6dca1bf4ec4264e376c7 (patch)
tree333018a43607bfd7457ae1c45cec3da33157bd24 /sys
parent92f17d1e6acf7fd66c58215578dbc6bdb5f51829 (diff)
downloadFreeBSD-src-79452537e3d4c5c4604a6dca1bf4ec4264e376c7.zip
FreeBSD-src-79452537e3d4c5c4604a6dca1bf4ec4264e376c7.tar.gz
- Remove two mtx_asserts that can incorrectly trigger if
devstat_end_transaction is called from a fast interrupt. Presently there is no way for mtx_assert to determine that we're not executing in a real thread context. Submitted by: jhusted@isilon.com
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_devstat.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 3f939fe..8a7eff5 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -281,8 +281,6 @@ devstat_end_transaction(struct devstat *ds, u_int32_t bytes,
{
struct bintime dt, lnow;
- mtx_assert(&devstat_mutex, MA_NOTOWNED);
-
/* sanity check */
if (ds == NULL)
return;
@@ -326,8 +324,6 @@ devstat_end_transaction_bio(struct devstat *ds, struct bio *bp)
{
devstat_trans_flags flg;
- mtx_assert(&devstat_mutex, MA_NOTOWNED);
-
/* sanity check */
if (ds == NULL)
return;
OpenPOWER on IntegriCloud