Message ID | 20200518173453.507244143@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=DMP2=7A=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87607C433E0 for <stable@archiver.kernel.org>; Mon, 18 May 2020 18:22:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5747620643 for <stable@archiver.kernel.org>; Mon, 18 May 2020 18:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589826138; bh=+XG6YDhVnmYYUPoMUfzP6DZO8i8Iskzc9nZALxpTZCA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=psnrhYDXA4KmiO5pbwANGwY1N6a8gzIouHBW7o81nnMyXdMGg2yflMyMVOVdrI6U2 7D1z95xJafKWCR4b38mGjAFN4KOYJpsbEfvfXajY8XVYZpwF+/IyZP2Uj6nk3bH1zn Be02AB5p82ZpQEIVd456/8w9+YV0DJ6yj9R3UpkE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730781AbgERRuq (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 18 May 2020 13:50:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:53038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730779AbgERRup (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 18 May 2020 13:50:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 62CBD20715; Mon, 18 May 2020 17:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589824244; bh=+XG6YDhVnmYYUPoMUfzP6DZO8i8Iskzc9nZALxpTZCA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lkNMU3y3B3C5BsUBSfZwemgjbhxeMJxzbSHGhUIqMvV6VMGl8qHIardJQHA/AnZ7N /9YUBbSSHo8Fd64zLjIPKpVLnsy4evglDWBtKbVP5Fq+E2WRGyfDvpo/OLSKS7gbcO 3BWD1Ag3nLUvjjGO+kUBaP45Xpe8LOf8z3OLeFbU= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>, Eric Dumazet <eric.dumazet@gmail.com>, "Michael S. Tsirkin" <mst@redhat.com>, "David S. Miller" <davem@davemloft.net> Subject: [PATCH 4.19 15/80] virtio_net: fix lockdep warning on 32 bit Date: Mon, 18 May 2020 19:36:33 +0200 Message-Id: <20200518173453.507244143@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200518173450.097837707@linuxfoundation.org> References: <20200518173450.097837707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1242,9 +1242,11 @@ static bool try_fill_recv(struct virtnet break; } while (rq->vq->num_free); if (virtqueue_kick_prepare(rq->vq) && virtqueue_notify(rq->vq)) { - u64_stats_update_begin(&rq->stats.syncp); + unsigned long flags; + + flags = u64_stats_update_begin_irqsave(&rq->stats.syncp); rq->stats.kicks++; - u64_stats_update_end(&rq->stats.syncp); + u64_stats_update_end_irqrestore(&rq->stats.syncp, flags); } return !oom;