Subject: CVS commit: [netbsd-2-0] src/sys/dev/ata
To: None <source-changes@NetBSD.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 08/11/2004 19:47:48
Module Name:	src
Committed By:	jmc
Date:		Wed Aug 11 19:47:48 UTC 2004

Modified Files:
	src/sys/dev/ata [netbsd-2-0]: wd.c

Log Message:
Pullup rev 1.282-1.283 (requested by bouyer in ticket #735)

Move cleaning of the bad block list in wddetach() after the call to
disk_detach(), to avoid a race condition with the interrupt code.
wddetach(): move lockmgr(LK_DRAIN) near the end; otherwise we'll panic in
wddone() (vdevgone() may end up calling it) trying to get the lock.
wdopen(): check for DVF_ACTIVE.


To generate a diff of this commit:
cvs rdiff -r1.274.2.5 -r1.274.2.6 src/sys/dev/ata/wd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.