diff options
| author | Miklos Szeredi <[email protected]> | 2024-03-06 15:20:58 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2024-03-06 15:20:58 +0000 |
| commit | cdf6ac2a03d253f05d3e798f60f23dea1b176b92 (patch) | |
| tree | 5851952559f7f82741a7a951f2b4de18f6eb6437 /net/switchdev/switchdev.c | |
| parent | fuse: remove unneeded lock which protecting update of congestion_threshold (diff) | |
| download | kernel-cdf6ac2a03d253f05d3e798f60f23dea1b176b92.tar.gz kernel-cdf6ac2a03d253f05d3e798f60f23dea1b176b92.zip | |
fuse: get rid of ff->readdir.lock
The same protection is provided by file->f_pos_lock.
Note, this relies on the fact that file->f_mode has FMODE_ATOMIC_POS.
This flag is cleared by stream_open(), which would prevent locking of
f_pos_lock.
Prior to commit 7de64d521bf9 ("fuse: break up fuse_open_common()")
FOPEN_STREAM on a directory would cause stream_open() to be called.
After this commit this is not done anymore, so f_pos_lock will always
be locked.
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
