diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2026-03-11 22:05:17 +0100 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-04-02 20:43:24 +0200 |
| commit | e9bf38500ed9aec7cfdf9219c75d353645b41168 (patch) | |
| tree | d531d968cfd670f784d61f90ad4905d6ffb84c51 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | a8dd5f1b73bc533e1192d38c82fc144595d3ce9a (diff) | |
fuse: add refcount to fuse_dev
This will make it possible to grab the fuse_dev and subsequently release
the file that it came from.
In the above case, fud->fc will be set to FUSE_DEV_FC_DISCONNECTED to
indicate that this is no longer a functional device.
When trying to assign an fc to such a disconnected fuse_dev, the fc is set
to the disconnected state.
Use atomic operations xchg() and cmpxchg() to prevent races.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
