Commit 43f34576 authored by Martin Brandenburg's avatar Martin Brandenburg Committed by Mike Marshall

orangefs: do not return successful read when the client-core disappeared

Signed-off-by: default avatarMartin Brandenburg <martin@omnibond.com>
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 85ac799c
...@@ -169,6 +169,9 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode, ...@@ -169,6 +169,9 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
* trigger the write. * trigger the write.
*/ */
case OP_VFS_STATE_INPROGR: case OP_VFS_STATE_INPROGR:
if (type == ORANGEFS_IO_READ)
ret = -EINTR;
else
ret = total_size; ret = total_size;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment