diff options
author | Martin Brandenburg <martin@omnibond.com> | 2018-11-06 19:51:39 +0000 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2019-05-03 14:32:38 -0400 |
commit | 43f34576042eb3256c39b502b22c6755144f7517 (patch) | |
tree | f6c2acb63eb12769b457d3ca1eb70b8798648e6c /fs/orangefs | |
parent | 85ac799cf926a589829ebe6274bb5e5a41159743 (diff) | |
download | linux-43f34576042eb3256c39b502b22c6755144f7517.tar.gz linux-43f34576042eb3256c39b502b22c6755144f7517.tar.bz2 linux-43f34576042eb3256c39b502b22c6755144f7517.zip |
orangefs: do not return successful read when the client-core disappeared
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r-- | fs/orangefs/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
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", |