freebsd-dev/sys/dev/md
Ian Dowse e176446dc8 Move the check for the MD_SHUTDOWN flag to before the tsleep() call
in the per-device kthread. This ensures that synchronisation with
mddestroy() succeeds even if the kthread was not waiting in tsleep()
at the time of the wakeup(). Among other things, this fixes the
problem of mdconfig getting stuck when an attempt is made to use a
zero-length file as a vnode-type backing store.

Approved by:	re
2002-11-30 22:03:53 +00:00
..
md.c Move the check for the MD_SHUTDOWN flag to before the tsleep() call 2002-11-30 22:03:53 +00:00