diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2026-03-12 12:19:10 +0100 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-04-02 20:52:59 +0200 |
| commit | 4ae404afd92e36be378eb120a2dc13031cdac7a6 (patch) | |
| tree | d5a4f56cf4656960d795bcfb9b0b99aafda50171 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | d42eb23b2ef9fbe66ea7fd4b3153c3244818d47c (diff) | |
fuse: clean up device cloning
- fuse_mutex is not needed for device cloning, because fuse_dev_install()
uses cmpxcg() to set fud->fc, which prevents races between clone/mount
or clone/clone. This makes the logic simpler
- Drop fc->dev_count. This is only used to check in release if the device
is the last clone, but checking list_empty(&fc->devices) is equivalent
after removing the released device from the list. Removing the fuse_dev
before calling fuse_abort_conn() is okay, since the processing and io
lists are now empty for this device.
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
