Explicitely note that destroy_dev() sleeps.

Requested by:	ed (some time ago), Jaakko Heinonen <jh saunalahti fi>
This commit is contained in:
Konstantin Belousov 2008-11-27 16:47:25 +00:00
parent 5cd54324ee
commit b7a813fc21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185373

View File

@ -862,6 +862,7 @@ void
destroy_dev(struct cdev *dev)
{
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "destroy_dev");
dev_lock();
destroy_devl(dev);
dev_unlock_and_free();