From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x224xfcnhQx49ix1y0HotuU1OBylQt6o2ERzxsgf1cL+G8GPQLh8cMjguJ3UDGuqf89v+vKYo ARC-Seal: i=1; a=rsa-sha256; t=1517257022; cv=none; d=google.com; s=arc-20160816; b=YFI4WVcV2NKuPLGAe+tDpFeXfhbSsNwmdq2oWy/k3VM1giosTEnirYsjNjDa1iKgNC O4HAdlc+RzRA0LTJsA4FxFDw4hVyiYS1mzkuvVxuHapBpQr0Mma1QU+8VKwWJ9VpXse7 lWqqZLDAgtbI6oKoeduja5YNOo5mDB9GrreEMuJn4O9SIUjSf1prCTj9eeZSKQy/7WSL 4EgfI1LQlWzYVUvtk5Eut7iK/5taO7mW4hPdp1+arEznrtbcraptvP+QaGu9fhFYeEdk PQ9l5xK10OSRu7PsDOGc+zzkuqyjCdM+PBTU1pkLhjq5eC1oF+Oz9UCA+kOQjg7n7q5v uq6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=KiZOg/Z1oR6Sy0Xmq6pN6AquzupR46zfcVhIs+cyncs=; b=qV2Dsh3Atsma/5zlz6hABXWxJslogmi4lRRUVovog745VFzwxJI7uh3q6xHqpjDco2 aLopaQPknw4Rjw/jz5eZJqp3g5RLTQnwhK1FV3vlaxKK1BZSujflkUeACkm785CgT/KR ezIfmabvEYp7N3SJ9YZUY/EopQZIZIR0QH9tE5X9wNGlJWRtf6K213N3vtipA4XBLWS2 2yfzvjasEV7tiAiyOyIuwNL6SYXlfFIV/bq3GKrFlEH+Es/upePcgBJHtF4ABpUGZD+E BPp9mvpPxLWxZJnfSTR4b8AMdnL3A6PhpHrgxKMw9MFseIEa/f52hsKpoPMvIOv0Vfx1 Br7g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.71.90 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Brandenburg , Linus Torvalds Subject: [PATCH 4.9 02/66] orangefs: use list_for_each_entry_safe in purge_waiting_ops Date: Mon, 29 Jan 2018 13:56:26 +0100 Message-Id: <20180129123839.973294875@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123839.842860149@linuxfoundation.org> References: <20180129123839.842860149@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1590959299838735728?= X-GMAIL-MSGID: =?utf-8?q?1590959299838735728?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Martin Brandenburg commit 0afc0decf247f65b7aba666a76a0a68adf4bc435 upstream. set_op_state_purged can delete the op. Signed-off-by: Martin Brandenburg Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/orangefs/waitqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/fs/orangefs/waitqueue.c +++ b/fs/orangefs/waitqueue.c @@ -28,10 +28,10 @@ static void orangefs_clean_up_interrupte */ void purge_waiting_ops(void) { - struct orangefs_kernel_op_s *op; + struct orangefs_kernel_op_s *op, *tmp; spin_lock(&orangefs_request_list_lock); - list_for_each_entry(op, &orangefs_request_list, list) { + list_for_each_entry_safe(op, tmp, &orangefs_request_list, list) { gossip_debug(GOSSIP_WAIT_DEBUG, "pvfs2-client-core: purging op tag %llu %s\n", llu(op->tag),