Commit 37529fe9 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Jens Axboe

set relay file can not be read by pread(2)

I found that relay files can be read by pread(2). I fix it,
for relay files are not capable of seeking.
Signed-off-by: default avatarLai Jiangshan <>
Signed-off-by: default avatarJens Axboe <>
parent 05dda977
......@@ -736,7 +736,7 @@ static int relay_file_open(struct inode *inode, struct file *filp)
filp->private_data = buf;
return 0;
return nonseekable_open(inode, filp);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment