]> 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)
commite4b9e432408c627f9081e17b2620de6e4cc1c189
treeb49fa7310ed588939e67ce97ed39fd9682da59e0
parent976e5a97223b8062a67df9d7ce6de0de239fcb5f
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