Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3520381pxf; Mon, 15 Mar 2021 11:22:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7RgzOSeRQyLxGmpcPmxfA2T9On943ex5oRWTP9iU0ER3vM/FfPG9nlakrXHq0PdnWZjM/ X-Received: by 2002:a05:6402:168c:: with SMTP id a12mr31926308edv.344.1615832574351; Mon, 15 Mar 2021 11:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832574; cv=none; d=google.com; s=arc-20160816; b=Eq0OBJSV6vByM9NA6mqf2f0pRXEe+PoZsCG/5Rx77Ph6cxqZ0MFaXEzdVrNZiVZhiF wzfxX/jQB5//rGDI1pwvpoWQAJjq/vuhh5OsMBvRWfqFxSkWF45HZD3fbZrzorgevYKj 77Bl98MJDldkgXGm3uhVcCs+8N4BrVcsQROJ9kkCM8kVh0R1l7gp2/BKfRj0o2fjOEgL lsi/SDn+pQ5YWfEqT9/iz0b94E9K/W0G4LTwQlvxmL43rMeTsecVOs3ml++Pg5VIA1Kx SBX0k+KhrduPAAGXfyGcUlFBWiZFTcywVzcmyOVpS1np6LW9Od2wCbtPQtS2BQGV7FSy T4hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/w9s9pi8mwLxwMi129Yom05UQD/vocU0BItfHQtce/A=; b=J/85DW83rLSJB1b5I8eLyy17fD3548Wha4YLVkmtrBpJB56mpA/MJYx8nNMoezL6GP mIscSvpK1PYyrLRHYcxlq5lmjDz3fsSDty61IoNmME9LyuyaL1xi/rrjcdjsTPdXQjMA ZJdtZp/xWVYCLMLVqjRDLadP0YLnzbG7zv+deXdtN+SjtjIOlKzkzJ8pHYdyRhFLRRvu 8VUxc32j63tSU65NseMLzqChzL3Um905pGKouUuFecLGcrQ+nQs5e33kls3fLA3rCsHt 0vu8xLh3rIgb4a8TxJsObZhwR6XrIdW3SV+Ek3bK2Wz9adOGz7NIqCkPCYvU0nmR8LL4 x71g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="uKLieP/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si11206125edc.137.2021.03.15.11.22.32; Mon, 15 Mar 2021 11:22:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="uKLieP/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233583AbhCOOVD (ORCPT + 99 others); Mon, 15 Mar 2021 10:21:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:36764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbhCON75 (ORCPT ); Mon, 15 Mar 2021 09:59:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A3CEF64F16; Mon, 15 Mar 2021 13:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816779; bh=V5zeatwusUhooNPoZJu1Az09+q1MdFbTpey8zMyqGkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uKLieP/TlKBdnYY8l9Y1/C4/S0/4DDawc14JdsMsT+A3DOQPyVzo/FzVDt3zInpAi 8TVlcDJYDjC+dZEt5eW8vqTLJYbg8xSamnj+gViO03tnMO9QCIgpxWQtqs92kKsJba R5xi6k80Jlp/971cE7fv48X2B9/wVfgGdUkegxIo= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julian Wiedmann , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 110/290] s390/qeth: remove QETH_QDIO_BUF_HANDLED_DELAYED state Date: Mon, 15 Mar 2021 14:53:23 +0100 Message-Id: <20210315135545.621916698@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Julian Wiedmann [ Upstream commit 75cf3854dcdf7b5c583538cae12ffa054d237d93 ] Reuse the QETH_QDIO_BUF_EMPTY state to indicate that a TX buffer has been completed with a QAOB notification, and may be cleaned up by qeth_cleanup_handled_pending(). Signed-off-by: Julian Wiedmann Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/s390/net/qeth_core.h | 2 -- drivers/s390/net/qeth_core_main.c | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 2f7e06ec9a30..ea969b8fe687 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h @@ -424,8 +424,6 @@ enum qeth_qdio_out_buffer_state { /* Received QAOB notification on CQ: */ QETH_QDIO_BUF_QAOB_OK, QETH_QDIO_BUF_QAOB_ERROR, - /* Handled via transfer pending / completion queue. */ - QETH_QDIO_BUF_HANDLED_DELAYED, }; struct qeth_qdio_out_buffer { diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 78a866424022..e2cdb5c2fc66 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -477,8 +477,7 @@ static void qeth_cleanup_handled_pending(struct qeth_qdio_out_q *q, int bidx, while (c) { if (forced_cleanup || - atomic_read(&c->state) == - QETH_QDIO_BUF_HANDLED_DELAYED) { + atomic_read(&c->state) == QETH_QDIO_BUF_EMPTY) { struct qeth_qdio_out_buffer *f = c; QETH_CARD_TEXT(f->q->card, 5, "fp"); @@ -549,7 +548,7 @@ static void qeth_qdio_handle_aob(struct qeth_card *card, kmem_cache_free(qeth_core_header_cache, data); } - atomic_set(&buffer->state, QETH_QDIO_BUF_HANDLED_DELAYED); + atomic_set(&buffer->state, QETH_QDIO_BUF_EMPTY); break; default: WARN_ON_ONCE(1); -- 2.30.1