From 516621bf24bb885549a9246b9c06622cfb05e1f4 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Fri, 14 Mar 2014 15:44:10 +0800 Subject: [PATCH] LU-4717 llite: suppress non active IO error message Current CLIO does not support fadvise, suppress the error message. Signed-off-by: Bobi Jam Change-Id: Iab3133ecc08cf0890ab3aa55018565d3d9f96e07 Reviewed-on: http://review.whamcloud.com/9658 Tested-by: Jenkins Reviewed-by: Jinshan Xiong Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/llite/rw.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index da6bd6d..a873e9e 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -114,15 +114,8 @@ struct ll_cl_context *ll_cl_init(struct file *file, struct page *vmpage) cio = ccc_env_io(env); io = cio->cui_cl.cis_io; lcc->lcc_io = io; - if (io == NULL) { - struct inode *inode = file->f_dentry->d_inode; - - CERROR("%s: " DFID " no active IO, please file a ticket.\n", - ll_get_fsname(inode->i_sb, NULL, 0), - PFID(ll_inode2fid(inode))); - libcfs_debug_dumpstack(NULL); + if (io == NULL) result = -EIO; - } if (result == 0 && vmpage != NULL) { struct cl_page *page; -- 1.8.3.1