Make `fuse_rd_filtops' mpsafe.
authormvs <mvs@openbsd.org>
Sat, 16 Dec 2023 22:17:08 +0000 (22:17 +0000)
committermvs <mvs@openbsd.org>
Sat, 16 Dec 2023 22:17:08 +0000 (22:17 +0000)
commite10a268edd841334ce53dd5a87213dbd7e3b4baa
treec9807465fa711c52096a72b51763ca74f2e52d98
parent0b9ea2785a44171b5f54de1d7806f4a554e50e47
Make `fuse_rd_filtops' mpsafe.

Introduce `fd_lock' rwlock(9) and use it for `fd_fbufs_in' fuse buffers
queue and `fd_rklist' knotes list protection.

Tested by Rafael Sadowski.

Discussed with and ok from bluhm
sys/miscfs/fuse/fuse_device.c