diff options
author | phk <phk@FreeBSD.org> | 2005-01-22 19:08:50 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-22 19:08:50 +0000 |
commit | d2f418bf2c395436657014b2be750a0c84ac12eb (patch) | |
tree | cecd9f703f35c94f003dfa21e49d04cb45386496 /sys | |
parent | 1215571a8784433c8e5680a8bc5697f81df699c2 (diff) | |
download | FreeBSD-src-d2f418bf2c395436657014b2be750a0c84ac12eb.zip FreeBSD-src-d2f418bf2c395436657014b2be750a0c84ac12eb.tar.gz |
Add a couple of mtx_asserts() to try to narrow down the window on
a bug repeatedly reported.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index a152f67..fdcf4f6 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -676,7 +676,9 @@ md_kthread(void *arg) error = mdstart_preload(sc, bp); break; case MD_VNODE: + mtx_assert(&Giant, MA_OWNED); error = mdstart_vnode(sc, bp); + mtx_assert(&Giant, MA_OWNED); break; case MD_SWAP: error = mdstart_swap(sc, bp); |