This moves the M_WAITOK (sleepable) memory allocation under
dirlist_mtx, which is an ordinary mutex. If you run this under
WITNESS, it will (rightfully) complain. Please revert this change.
One possible way to accomplish the goal you have in mind is a fallback
path if the devfs_dir_findent_locke
Author: manu
Date: Thu Nov 30 12:38:42 2017
New Revision: 326394
URL: https://svnweb.freebsd.org/changeset/base/326394
Log:
devfs: Avoid a malloc/free if we just need to increment the refcount
MFC after:1 week
Sponsored by: Gandi.net
Modified:
head/sys/fs/devfs/devfs_dir.c
Modifie