CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2018/05/08 04:53:35
Modified files: sys/kern : vfs_subr.c Log message: When looping over mount points, the FOREACH SAVE macro is not save. The loop variable mp is protected by vfs_busy() so that it cannot be unmounted. But the next mount point nmp could be unmounted while VFS_SYNC() sleeps. As the loop in vfs_stall() does not destroy the mount point, TAILQ_FOREACH_REVERSE without _SAVE is the correct macro to use. OK deraadt@ visa@