Received: by 10.223.185.116 with SMTP id b49csp5517008wrg; Wed, 7 Mar 2018 13:11:21 -0800 (PST) X-Google-Smtp-Source: AG47ELuLGQPslD8Bht2P5dBgvIbb/MaYq2cjOAHNXrUe1pnuhWljkzXWy8amwj5hzJObWDYA8Z/O X-Received: by 10.101.91.3 with SMTP id y3mr19356751pgq.149.1520457081339; Wed, 07 Mar 2018 13:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520457081; cv=none; d=google.com; s=arc-20160816; b=MbN+ZKagfw+C/yIJ6Rj7mOr7838zIkrsYwMVI5Z/nvWMM8UDunpVYWLqDHA02UoUnC TjtvbacAq+YjQR1I0Rkm0nH3wIbTvLIaT1LCI3MqxGjV/AV+vlQQCFxaEdpxC0QGCZDG 8ZjcIgSqKfT5Dk1dWk0sIVYueZ35+jPc3cnpH4AT5GM5jACjn1a1jzJZPUzhiKGBNkQ0 w26t1FGfhelZjmjHFPLOv+XV+Hkvey6TKtxBLot7+/7PCF8QCyfacqbn8PVn2PZgYw7E bwC25V5gO8NTGh8ftoI3b9eUOV7/6WUkRwtP7eFrd7D9ZEK3wpl6l5hVKMBN1Qic5oCU q9aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=rhomzj68v5g3ANctJsiBcv0/7cmahS5wAk8k4gaKlXo=; b=nFsySXCWNraVYpKfktQLQ+LlxzZwmLCftDsi9qNsn+WXVhVcwu6sJoajDaIfCcUwhW 1YQR3jF2XiqN+H6kyw109OVsxETMe/01jF0jKXQLvVFKGF1YzA5jtgEIV3vqWEW/Yg4t FjKNA6zDUENocko6psuB3Vnhq/UXoliyPPqCP87GdEhBepAHLglPIVoA/LXW/7bVggt5 gvar0Yyo33wv9Bxp8MKO4ytEVrRvJVtoMriPfNvOZRvVxxnerlbH2IWJ14lLeupn9t/G klfaqetenKLvU+Y1RZwFGv3VN9gdcYKCexnZ38N9ZsHogZrIiH5kpXPZsTpxDDO9HgJm cfIw== 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 r15si14214248pfh.230.2018.03.07.13.11.07; Wed, 07 Mar 2018 13:11:21 -0800 (PST) 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 S1754816AbeCGVIs convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Mar 2018 16:08:48 -0500 Received: from mga01.intel.com ([192.55.52.88]:32006 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754333AbeCGVIr (ORCPT ); Wed, 7 Mar 2018 16:08:47 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2018 13:08:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,437,1515484800"; d="scan'208";a="23340535" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 07 Mar 2018 13:08:46 -0800 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 7 Mar 2018 13:08:46 -0800 Received: from FMSMSX109.amr.corp.intel.com ([169.254.15.144]) by FMSMSX155.amr.corp.intel.com ([169.254.5.47]) with mapi id 14.03.0319.002; Wed, 7 Mar 2018 13:08:45 -0800 From: "Dilger, Andreas" To: NeilBrown CC: "Drokin, Oleg" , Greg Kroah-Hartman , James Simmons , "Linux Kernel Mailing List" , Lustre Development List Subject: Re: [PATCH 03/17] staging: lustre: statahead: remove incorrect test on agl_list_empty() Thread-Topic: [PATCH 03/17] staging: lustre: statahead: remove incorrect test on agl_list_empty() Thread-Index: AQHTsbWbwtPAEwUOXUWCffhH7g5yzKPF06WA Date: Wed, 7 Mar 2018 21:08:45 +0000 Message-ID: <4D8083A9-175E-418C-ACD3-252A34EF4746@intel.com> References: <151994679573.7628.1024109499321778846.stgit@noble> <151994708514.7628.7094184804431206060.stgit@noble> In-Reply-To: <151994708514.7628.7094184804431206060.stgit@noble> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.6.233] Content-Type: text/plain; charset="us-ascii" Content-ID: <9909C947FC67144EBAEC2740DB62A457@intel.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mar 1, 2018, at 16:31, NeilBrown wrote: > > Including agl_list_empty() in the wait_event_idle() condition > is pointless as the body of the loop doesn't do anything > about the agl list. > So if the list wasn't empty, the while loop would spin > indefinitely. > > The test was removed in the lustre-release commit > 672ab0e00d61 ("LU-3270 statahead: small fixes and cleanup"), > but not in the Linux commit 5231f7651c55 ("staging: lustre: > statahead: small fixes and cleanup"). > > Fixes: 5231f7651c55 ("staging: lustre: statahead: small fixes and cleanup") > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/llite/statahead.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/staging/lustre/lustre/llite/statahead.c b/drivers/staging/lustre/lustre/llite/statahead.c > index 6052bfd7ff05..ba00881a5745 100644 > --- a/drivers/staging/lustre/lustre/llite/statahead.c > +++ b/drivers/staging/lustre/lustre/llite/statahead.c > @@ -1124,7 +1124,6 @@ static int ll_statahead_thread(void *arg) > while (thread_is_running(sa_thread)) { > wait_event_idle(sa_thread->t_ctl_waitq, > sa_has_callback(sai) || > - !agl_list_empty(sai) || > !thread_is_running(sa_thread)); > > sa_handle_callback(sai); > > Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation