[RHEL7,COMMIT] fs: Export symbols replace_fd() and create_pipe_files()

Submitted by Konstantin Khorenko on Feb. 1, 2019, 9:52 a.m.


Message ID 201902010952.x119qMXD012493@finist-ce7.sw.ru
State New
Series "Export symbols replace_fd and create_pipe_files"
Headers show

Commit Message

Konstantin Khorenko Feb. 1, 2019, 9:52 a.m.
The commit is pushed to "branch-rh7-3.10.0-957.1.3.vz7.83.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.1.3.vz7.83.9
commit a65a2e655b78ac294822ed37e956815c138b1a43
Author: Sergey Lysanov <slysanov@virtuozzo.com>
Date:   Fri Feb 1 12:52:22 2019 +0300

    fs: Export symbols replace_fd() and create_pipe_files()
    Need to create a pipe for usermodehelper from SCST.
    User helper will read SCSI persistent reservations
    from pipe and sync it with other nodes in cluster.
    Kernel also will read new persistent reservations
    from userspace by invoking helper with pipe.
    Required for https://pmc.acronis.com/browse/VSTOR-10187
    Signed-off-by: Sergey Lysanov <slysanov@virtuozzo.com>
 fs/file.c | 1 +
 fs/pipe.c | 1 +
 2 files changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/fs/file.c b/fs/file.c
index 12d755b67fcf..84c8d695c0d3 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -952,6 +952,7 @@  int replace_fd(unsigned fd, struct file *file, unsigned flags)
 	return err;
 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
diff --git a/fs/pipe.c b/fs/pipe.c
index ebe696a2bc04..24b757780c6a 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -996,6 +996,7 @@  int create_pipe_files(struct file **res, int flags)
 	return err;
 static int __do_pipe_flags(int *fd, struct file **files, int flags)