[PATCH] Change sync_file_range to be non-cancellable
Florian Weimer
fweimer@redhat.com
Wed Oct 21 13:24:00 GMT 2015
On 10/21/2015 02:34 PM, Adhemerval Zanella wrote:
> This patch changes the linux specific sync_file_range syscalls to be
> non-cancellable. The rationale is:
>
> 1. This is a Linux specific syscall that is not mentioned in POSIX
> cancellable entrypoints [1] and the standard states and implementation
> shall not introduce cancellation points into any other functions
> specified.
It says that we must not make any function mentioned in POSIX
cancellable. We can certainly introduce our own functions which are
cancellable and not port of POSIX.
I think sync_file_range should be cancellable for consistency with fsync
and fdatasync.
Florian
More information about the Libc-alpha
mailing list