]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-force...
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 13 Apr 2022 00:47:45 +0000 (03:47 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 13 Apr 2022 23:47:04 +0000 (02:47 +0300)
commitbf13db086b84c29ce901145f2800c561dcbf4d1e
treed82fe4281c139716702d418a0bc6cd5733e012d3
parenta30eb84a5dc4cb3c7e50f4f01473eeeab8b5bbd3
Mostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-forced unmount

Problem is that open(O_PATH) on nullfs -o nocache is broken then,
because there is no reference on the vnode after the open syscall exits.

Reported and tested by: ambrisko
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
lib/libc/sys/open.2
sys/kern/kern_descrip.c
sys/kern/vfs_syscalls.c