Received: by 10.223.185.116 with SMTP id b49csp8018616wrg; Thu, 1 Mar 2018 15:33:52 -0800 (PST) X-Google-Smtp-Source: AG47ELu9AH6ee6eBSdREpz8712XyQMMFXeGDHhCpP3PBuOUwvSUQwk2+wuIIsMsRns9aPuw7oBqq X-Received: by 10.101.93.135 with SMTP id f7mr2846440pgt.82.1519947232850; Thu, 01 Mar 2018 15:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519947232; cv=none; d=google.com; s=arc-20160816; b=gh26Ry/R7xSv+Oxb3xNwQdFZBvv0NVe8Q8ZMhliZ/VCspp3qkh+7DCMq+cyuvo0Qcd KksrpmvKY8q//elFyMROhwW87K03SSfHr0CW/dBtNA46bkOWDwidZBD4LktIWxox23Vt uqONe/5SmyRZKabP7Gf5/mVO8jkvIjDagsoP9OsJonBXk/uGlj0omGnoBPcg4nmc5pMW k5Fqf6KFi3/zDEYuld2VsiSBpMKMBzzJ66w5Dt4FjcdW1v0Q5JiOwOQ5HT4cIme8WAwX OcsnVnMJrky6RTT51eXrVjANZ5X3Cm425XiA8gVptbEZ66XFdw+5sfKrhW+48mSXibPl oC1A== 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=gauJiWygrG/6gr8IumLvJLQJ1wgjCv81Cf0pdz8wGuE=; b=K34xRUr7QMRulCZZignobUwynRbMtaPHm1c8VTPsb/qs/zp+GwDiJUZbmRMrOJzm+y 5FUBCCZ1Dfk/n6AwvIKg9Ugm1qPqhj9U5XY2TTXDpzpM1JY9wPFfo4vMvEjwRGehXYo/ v+4ffVTIlyNi1iCAyz40IucWqxClXhLXXs0kr/KxAkwIcp9ZXzd2PrXdkRAXwwMR+ZkI TDZqXOVrqJrU3L6nlokepnk/UOFTDg7lDCGbyWYo+gCXNeOZcIWSNJ8FIHJpjGdzlAwq cK6sL/MXESO95WgXvFV627zc+BWUy/56dCPlETEPzY0xIwO4jiKHVPBQDb+YGfejnScf JXPQ== 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 t5si3073220pgf.93.2018.03.01.15.33.38; Thu, 01 Mar 2018 15:33:52 -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 S1163233AbeCAXch (ORCPT + 99 others); Thu, 1 Mar 2018 18:32:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:54121 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163222AbeCAXcf (ORCPT ); Thu, 1 Mar 2018 18:32:35 -0500 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 6FD73B46C; Thu, 1 Mar 2018 23:32:34 +0000 (UTC) From: NeilBrown To: Oleg Drokin , Greg Kroah-Hartman , James Simmons , Andreas Dilger Date: Fri, 02 Mar 2018 10:31:25 +1100 Subject: [PATCH 03/17] staging: lustre: statahead: remove incorrect test on agl_list_empty() Cc: Linux Kernel Mailing List , Lustre Development List Message-ID: <151994708514.7628.7094184804431206060.stgit@noble> In-Reply-To: <151994679573.7628.1024109499321778846.stgit@noble> References: <151994679573.7628.1024109499321778846.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 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 --- 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);