Export symbols replace_fd and create_pipe_files

Submitted by Sergey Lysanov on Jan. 30, 2019, 3:19 p.m.

Details

Message ID 1548861569-3068-1-git-send-email-slysanov@virtuozzo.com
State New
Series "Export symbols replace_fd and create_pipe_files"
Headers show

Commit Message

Sergey Lysanov Jan. 30, 2019, 3:19 p.m.
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.

Related to #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 970c907..d8f1528 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -955,6 +955,7 @@  out_unlock:
 	spin_unlock(&files->file_lock);
 	return err;
 }
+EXPORT_SYMBOL(replace_fd);
 
 SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
 {
diff --git a/fs/pipe.c b/fs/pipe.c
index ebe696a..24b7577 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -996,6 +996,7 @@  err_inode:
 	iput(inode);
 	return err;
 }
+EXPORT_SYMBOL(create_pipe_files);
 
 static int __do_pipe_flags(int *fd, struct file **files, int flags)
 {