Received: by 10.213.65.68 with SMTP id h4csp1125596imn; Wed, 28 Mar 2018 21:28:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+IIdnvJo7N/w74NxH/4XJDkLS7P0BNFHFRnK2BTpo0Bt7mhq2Ony9d2pfHoQNduJi3+i8b X-Received: by 10.101.99.66 with SMTP id p2mr4299414pgv.384.1522297713161; Wed, 28 Mar 2018 21:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522297713; cv=none; d=google.com; s=arc-20160816; b=T4UbVMo9CsZ4v7URHOQw2fkU4I2UVSOcmKFwRxERWNExAu6kv713gyD0/EgNcNrznc NSNdX2aCiDRgs/NE/uCvAutuojtRz1RKDXIfw0Gu1cx+HpmriwzH0n8R3Ap9KrvmN9x4 wXi/9yGrdpF5ENol6UHW24lf2CWcfT11iZHktPX5xrd4dfTMZRFeRSog5C6zZDachFZk hhj4LorsZwG6WF23ASBzJYGn4rI+r25twbE20/lcQPO0jyaRb1ogTl5U8Dn2givFJVM6 1DUE2hd+5An27aKeXb85EK+RoSOo2G7JOazlhfbiv1wojBpa+YkxYH9V4E+gOYQTMXFW f5FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:cc:subject:date:to :from:arc-authentication-results; bh=/ishgykC6QPPiMXD2mAlNvwRI7SM3Sd7lox9xUUcRV0=; b=pMrzfwLXOtzI9WIPyAuIAe7rCaY2EQQUI/SIM/AXtPxgrrvHiZ57mMlTIeWDRMLV8o fXl1avbjlArSL3YA/uX5CTu0dGeBYF1JtH0bl9nX9WCmBRR5eK7t4WCASDaRak3y2xqi irBSqNsuC++bNB2rUVp9mGvPGJ2VsseLbJFzBOquRXvOIPGNVeE5W4cbIjjxxD/Ua5Yq cVqv04+li5H3muM1HS2/fU65FexCexH1MG5tZaTKEAYFsd6Hj+Y+aVynwEbSfhXdTeBF 0SsIknhjXisOqBSJ36ThECeYWaM0+16iep24zh1EToZ8o8a8ydKvEMZnZGdEIXhxJJqZ 20iQ== ARC-Authentication-Results: i=1; mx.google.com; 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 r3si3917650pfe.147.2018.03.28.21.28.19; Wed, 28 Mar 2018 21:28:33 -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; 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 S1752135AbeC2E1T (ORCPT + 99 others); Thu, 29 Mar 2018 00:27:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:34682 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751206AbeC2E1S (ORCPT ); Thu, 29 Mar 2018 00:27:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 85523AF62; Thu, 29 Mar 2018 04:27:16 +0000 (UTC) From: NeilBrown To: Oleg Drokin , Greg Kroah-Hartman , James Simmons , Andreas Dilger Date: Thu, 29 Mar 2018 15:26:48 +1100 Subject: [PATCH 01/17] staging: lustre: remove invariant in cl_io_read_ahead() Cc: Linux Kernel Mailing List , Lustre Development List Message-ID: <152229760825.27689.17083243052405696738.stgit@noble> In-Reply-To: <152229732768.27689.4800156943561963977.stgit@noble> References: <152229732768.27689.4800156943561963977.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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. 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) {