Re: svn commit: r326394 - head/sys/fs/devfs

2017-11-30 Thread Conrad Meyer
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

svn commit: r326394 - head/sys/fs/devfs

2017-11-30 Thread Emmanuel Vadot
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