aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2024-04-07 15:57:57 +0000
committerMiklos Szeredi <[email protected]>2024-04-15 08:12:44 +0000
commit7cc911262835419fe469ebfae89891c0e97c62ef (patch)
tree8100455dddb40fbca0bf73b84136088469e4a779 /tools/perf/scripts/python/net_dropmonitor.py
parentfuse: fix wrong ff->iomode state changes from parallel dio write (diff)
downloadkernel-7cc911262835419fe469ebfae89891c0e97c62ef.tar.gz
kernel-7cc911262835419fe469ebfae89891c0e97c62ef.zip
fuse: fix parallel dio write on file open in passthrough mode
Parallel dio write takes a negative refcount of fi->iocachectr and so does open of file in passthrough mode. The refcount of passthrough mode is associated with attach/detach of a fuse_backing object to fuse inode. For parallel dio write, the backing file is irrelevant, so the call to fuse_inode_uncached_io_start() passes a NULL fuse_backing object. Passing a NULL fuse_backing will result in false -EBUSY error if the file is already open in passthrough mode. Allow taking negative fi->iocachectr refcount with NULL fuse_backing, because it does not conflict with an already attached fuse_backing object. Fixes: 4a90451bbc7f ("fuse: implement open in passthrough mode") Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions