]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make files opened with O_PATH to not block non-forced unmount
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 3 Apr 2021 18:55:11 +0000 (21:55 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 15 Apr 2021 09:48:27 +0000 (12:48 +0300)
commita5970a529c2d952714f20e4bc6e529c74fd2b3b5
tree3e02def33d5dab3f36911337f39f3930316015e1
parent8d9ed174f3afba5f114742447e622fc1173d4774
Make files opened with O_PATH to not block non-forced unmount

by only keeping hold count on the vnode, instead of the use count.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29323
lib/libc/sys/open.2
sys/kern/kern_descrip.c
sys/kern/vfs_lookup.c
sys/kern/vfs_syscalls.c