Commit 36ea233
Miklos Szeredi
fuse: write inode in fuse_vma_close() instead of fuse_release()
Fuse ->release() is otherwise asynchronous for the reason that it can
happen in contexts unrelated to close/munmap.
Inode is already written back from fuse_flush(). Add it to
fuse_vma_close() as well to make sure inode dirtying from mmaps also get
written out before the file is released.
Also add error handling.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>1 parent 5c791fe commit 36ea233
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | 342 | | |
349 | 343 | | |
350 | 344 | | |
| |||
2351 | 2345 | | |
2352 | 2346 | | |
2353 | 2347 | | |
2354 | | - | |
2355 | | - | |
| 2348 | + | |
| 2349 | + | |
2356 | 2350 | | |
2357 | 2351 | | |
2358 | 2352 | | |
2359 | | - | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
2360 | 2357 | | |
2361 | 2358 | | |
2362 | 2359 | | |
| |||
0 commit comments