diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-05-08 10:53:36 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-05-08 10:53:36 +0000 |
commit | 90dc32cceb02a00bfd0abde863c7f40be04db7b1 (patch) | |
tree | 26366f9a6187cbcce41f76fc1147110caaf6c047 /sys/dev | |
parent | 6faf5e04ac771ee419ade4d3426a8fb812669559 (diff) |
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@
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions