# Re: \[PATCH v3\] introduce sys\_syncfs to sync a single file system

- From: Arnd Bergmann \<arnd@arndb.de\>
- Date: 2011-03-10 22:08:22 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2011/03/51583
- Thread: https://ratatoskr.run/linux-fsdevel/2011/03/51473/t.md

```text
On Thursday 10 March 2011 20:31:30 Sage Weil wrote:
> It is frequently useful to sync a single file system, instead of all
> mounted file systems via sync(2):
> 
>  - On machines with many mounts, it is not at all uncommon for some of
>    them to hang (e.g. unresponsive NFS server).  sync(2) will get stuck on
>    those and may never get to the one you do care about (e.g., /).
>  - Some applications write lots of data to the file system and then
>    want to make sure it is flushed to disk.  Calling fsync(2) on each
>    file introduces unnecessary ordering constraints that result in a large
>    amount of sub-optimal writeback/flush/commit behavior by the file
>    system.
> 
> ...
> Signed-off-by: Sage Weil <redacted>

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
```
