ufs/suspend: deny suspension if the calling process has a file from mp opened for...
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 28 Dec 2022 18:14:52 +0000 (20:14 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 29 Dec 2022 20:55:39 +0000 (22:55 +0200)
commit701b36961cbd2084c36eb828402d0ef89211d929
tree4c5462a764cda9457b8e97326330f3ca9e5feb3c
parent68912701700ca3230f3e2d4b7858a038f884a327
ufs/suspend: deny suspension if the calling process has a file from mp opened for write

Also deny suspension if we cannot check the above condition race-free
because there is more than one thread in the calling process.

PR: 267628, 267630
Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D37896
sys/ufs/ffs/ffs_suspend.c