You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/9pfs
Christian Schoenebeck cdafeda357 9pfs: fix 'total_open_fd' decrementation
According to 'man 2 close' errors returned by close() should only be used
for either diagnostic purposes or for catching data loss due to a previous
write error, as an error result of close() usually indicates a deferred
error of a previous write operation.

Therefore not decrementing 'total_open_fd' on a close() error is wrong
and would yield in a higher open file descriptor count than actually the
case, leading to 9p server reclaiming open file descriptors too soon.

Based-on: <20250312152933.383967-7-groug@kaod.org>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <E1tvEyJ-004dMa-So@kylie.crudebyte.com>
2 months ago
..
9p-local.c 9pfs: Introduce futimens file op 2 months ago
9p-local.h
9p-posix-acl.c
9p-synth.c 9pfs: Introduce futimens file op 2 months ago
9p-synth.h
9p-util-darwin.c
9p-util-generic.c 9pfs: improve v9fs_open() tracing 5 months ago
9p-util-linux.c
9p-util.h 9pfs: Introduce futimens file op 2 months ago
9p-xattr-user.c
9p-xattr.c
9p-xattr.h
9p.c 9pfs: fix 'total_open_fd' decrementation 2 months ago
9p.h 9pfs: fix concurrent v9fs_reclaim_fd() calls 2 months ago
Kconfig
codir.c 9pfs: fix 'total_open_fd' decrementation 2 months ago
cofile.c 9pfs: fix 'total_open_fd' decrementation 2 months ago
cofs.c 9pfs: Introduce futimens file op 2 months ago
coth.c
coth.h 9pfs: Introduce futimens file op 2 months ago
coxattr.c
meson.build 9pfs: improve v9fs_open() tracing 5 months ago
trace-events 9pfs: improve v9fs_open() tracing 5 months ago
trace.h
virtio-9p-device.c qom: Have class_init() take a const data argument 2 months ago
virtio-9p.h
xen-9p-backend.c hw/xen: Make XenDevOps structures const 1 year ago
xen-9pfs.h