summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache/src/ioc-inode.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2012-03-07 21:02:16 +0530
committerVijay Bellur <vijay@gluster.com>2012-03-08 19:22:02 -0800
commitbc10ade1cff9d6cd3b3528ec6c845efadc722481 (patch)
treebc3f1b0edf9e96bffd0cd39a56996290673bc73f /xlators/performance/io-cache/src/ioc-inode.c
parent204ab142977163f634cbf4ec92be58754225504a (diff)
performance/io-cache: pass appropriate op_errno even during successful
reads. An op_errno equal to ENOENT with op_ret equal to zero is used by storage/posix xlator to indicate EOF. NFS relies on this protocol for correct functioning. Change-Id: I136fbf429a829bd7bd75ce8ce236f9557a418a5d BUG: 795789 Signed-off-by: Raghavendra G <raghavendra@gluster.com> Reviewed-on: http://review.gluster.com/2894 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/performance/io-cache/src/ioc-inode.c')
-rw-r--r--xlators/performance/io-cache/src/ioc-inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/io-cache/src/ioc-inode.c b/xlators/performance/io-cache/src/ioc-inode.c
index 4c48c41d1b7..a99d5ea99e9 100644
--- a/xlators/performance/io-cache/src/ioc-inode.c
+++ b/xlators/performance/io-cache/src/ioc-inode.c
@@ -123,7 +123,8 @@ ioc_inode_wakeup (call_frame_t *frame, ioc_inode_t *ioc_inode,
ioc_inode_lock (ioc_inode);
{
page_waitq =
- __ioc_page_wakeup (waiter_page);
+ __ioc_page_wakeup (waiter_page,
+ 0);
}
ioc_inode_unlock (ioc_inode);
if (page_waitq)