From: Bobi Jam Date: Fri, 14 Mar 2014 07:44:10 +0000 (+0800) Subject: LU-4717 llite: suppress non active IO error message X-Git-Tag: 2.5.59~71 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=516621bf24bb885549a9246b9c06622cfb05e1f4;p=fs%2Flustre-release.git 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 --- 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;