From: Martin Brandenburg Date: Tue, 6 Nov 2018 19:51:39 +0000 (+0000) Subject: orangefs: do not return successful read when the client-core disappeared X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=43f34576042eb3256c39b502b22c6755144f7517;p=openwrt%2Fstaging%2Fblogic.git orangefs: do not return successful read when the client-core disappeared Signed-off-by: Martin Brandenburg Signed-off-by: Mike Marshall --- diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index d8c97b87bf26..0af9f0b42d80 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -169,7 +169,10 @@ populate_shared_memory: * trigger the write. */ case OP_VFS_STATE_INPROGR: - ret = total_size; + if (type == ORANGEFS_IO_READ) + ret = -EINTR; + else + ret = total_size; break; default: gossip_err("%s: unexpected op state :%d:.\n",