]> git.baikalelectronics.ru Git - kernel.git/commit
fcntl: allow to set O_DIRECT flag on pipe
authorStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Tue, 15 Dec 2015 15:41:31 +0000 (19:41 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Jan 2016 07:55:37 +0000 (02:55 -0500)
commit3c53641a6b1ad4f4058554da591d20eb24b682be
treeb49fa7310ed588939e67ce97ed39fd9682da59e0
parent6550516b3707cadc197f82bdc73276bd1d41731a
fcntl: allow to set O_DIRECT flag on pipe

With packetized mode for pipes, it's not possible to set O_DIRECT on pipe file
via sys_fcntl, because of unsupported sanity checks.
Ability to set this flag will be used by CRIU to migrate packetized pipes.

v2:
Fixed typos and mode variable to check.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fcntl.c