Received: by 10.213.65.68 with SMTP id h4csp616805imn; Fri, 30 Mar 2018 11:59:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx48yjA5bJLDZi8eb/MrzYJT+TbrTQJ2YfOYop3xSm+mv6KY0g/LP7VFq6ElII5yijdWgyKnH X-Received: by 10.99.96.147 with SMTP id u141mr97977pgb.227.1522436340027; Fri, 30 Mar 2018 11:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522436339; cv=none; d=google.com; s=arc-20160816; b=HLHLchjOrnRVEpqC3shWDYfCKmAxzuW4DqroFA90KWgEUCDccpSpuMmYoJRaAUQnDI Os+Wrh9YiZ32U1UBnm3IoM/CQQy1jX9eawxhEHxWCS0BdrOmEXJwIQkFOvg/51iW68rt NMXzgwtU+St9Uuc0iuVyILqzVTm4Jdd2WydSyjbfErvRTzPRlBXMsPKHgNgHbQKMokqp tLBy2wD8/OO8IHTwX0VLUIQzjBQVXIBgv1KWsEbZOyiuJfZLqkMbDOZ+do4CKBi2b6DN vNWw3DCQFHu/Ir81h7TbE6QS617GbLmUiHKFqCVyj75/NXEepMogNY1m67IfsSd6gsbU pUfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=2HoXMpMw1reW+gTjEjEvIDXKeMYsl4ov9tggmed1z0A=; b=vXNo7KefyN1loETBgkffwc1OCPpJ/N8O6qJL6mnwI4pDuxY1HX411UlCT44JI0uDeF zgRpeWvntLCIFiPtETxN8t6EsbK7MxLV6eHhqFXvKB3XfcOVLoYjRuwcxgFZHmjDkQRC hJSPDrHGJorFt7vOPRcgpY5SGzVdhirJ+JNxt4qrtfK8POZ/SpXhID4/PQEDjkfhhXHB fs3mstjtYMu5292WGKkLueDBDa22ZfsMIt2fd5hD/R5QWRehDPvuh2YFobV+mpATmf8B XaZV4OE0eA5c+kb7Kg7paqJB0pAjvFwnJa0SN+XHjB/8j3CQqvsb+yOByEk54xZEo5Tv /jjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YxHgJWC8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5-v6si9108735plm.443.2018.03.30.11.58.32; Fri, 30 Mar 2018 11:58:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YxHgJWC8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbeC3S4y (ORCPT + 99 others); Fri, 30 Mar 2018 14:56:54 -0400 Received: from casper.infradead.org ([85.118.1.10]:45966 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338AbeC3S4x (ORCPT ); Fri, 30 Mar 2018 14:56:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Message-ID:In-Reply-To:Subject:cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2HoXMpMw1reW+gTjEjEvIDXKeMYsl4ov9tggmed1z0A=; b=YxHgJWC8sE2vPVEm7Vfg+3WKa JYU4M01K86bJDRmuO7/LgIffKrhKmy2RNfEo5/2by6r1UPo5TpMa2FVvox7dpkns+nEjNZ5D1lgMo YtZC26Dbs2dQFj/zOnoBaAU3oj0Bojek1qOlPQMasR9/9o7pL9wLveOvo6HVci2Lqmnrrq65aBdqM f86F0b7ODYO8mWFVG6nutt9xGlvNqkdN+NO5064gfjMKkouu/4iefpGyRh5jE/SdfWcnBBjjwQivm q9AoFuVcrS4D72vlSZNS5vxXzkr0Lw+To9vLsOJGY/q+7Z0rnpkWQNMS6g54P6Z3qLAvyH7yM9L6A JYqs0fL8g==; Received: from jsimmons (helo=localhost) by casper.infradead.org with local-esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f1zCf-0002XL-W7; Fri, 30 Mar 2018 18:56:47 +0000 Date: Fri, 30 Mar 2018 19:56:45 +0100 (BST) From: James Simmons To: NeilBrown cc: Oleg Drokin , Greg Kroah-Hartman , Andreas Dilger , Linux Kernel Mailing List , Lustre Development List Subject: Re: [PATCH 01/17] staging: lustre: remove invariant in cl_io_read_ahead() In-Reply-To: <152229760825.27689.17083243052405696738.stgit@noble> Message-ID: References: <152229732768.27689.4800156943561963977.stgit@noble> <152229760825.27689.17083243052405696738.stgit@noble> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180330_195646_021394_C027CC93 X-CRM114-Status: GOOD ( 13.58 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 NO_RELAYS Informational: message was not relayed via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This invariant can fail as ci_type is somtimes CIS_INIT. > > According to Jinshan Xiong, or of the most recent significant > change to this code, "We should get rid of it." > > So do that. Reviewed-by: James Simmons > Fixes: 1e1db2a97be5 ("staging: lustre: clio: Revise read ahead implementation") > Cc: Jinshan Xiong > Signed-off-by: NeilBrown > --- > drivers/staging/lustre/lustre/obdclass/cl_io.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/lustre/lustre/obdclass/cl_io.c b/drivers/staging/lustre/lustre/obdclass/cl_io.c > index ab84e011b560..fcdae6029258 100644 > --- a/drivers/staging/lustre/lustre/obdclass/cl_io.c > +++ b/drivers/staging/lustre/lustre/obdclass/cl_io.c > @@ -599,7 +599,6 @@ int cl_io_read_ahead(const struct lu_env *env, struct cl_io *io, > int result = 0; > > LINVRNT(io->ci_type == CIT_READ || io->ci_type == CIT_FAULT); > - LINVRNT(io->ci_state == CIS_IO_GOING || io->ci_state == CIS_LOCKED); > LINVRNT(cl_io_invariant(io)); > > cl_io_for_each(scan, io) { > > >