Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp382825imm; Mon, 21 May 2018 07:33:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZphSMTUwmIpBdppQ9OhiZ8STYn9svw35ktCHKRq7wSZWzEh3Wawc++yGWRFIh+BH9aPJpKS X-Received: by 2002:a65:5d0f:: with SMTP id e15-v6mr16296392pgr.119.1526913206595; Mon, 21 May 2018 07:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526913206; cv=none; d=google.com; s=arc-20160816; b=rslz6Z1BcFjcy2mIi2OLjvUgDy+FjIaMUrhRxfHpjDmtpYEpdxqdrQplYSsehf0nbg o8Ox7g/eJ692YGqTY04qgzYJovsWzj6OqBcVby5q0RKGnDsyjJMA2zvrNtEDm7ejL/nW 5lndw17F1WRLjcCtSN6O8wVjxm3j02wbnIfGqGFopKw6N06o5Fvuezx36aYOWcDOt/44 p36T7p1lYtTfNwEHU/JN2UWl/M5OGg69bh7FXgz/v22onnsqnn/IVX4GOl6PBi61gyeJ HPNkXk752vAd/G7g5kcJcj8Hi3DgcPSYDRkikTb4ISnQsrCWUQwYmlQ5c5sscVtArFUe 0Vhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=w7SLgYZmxTFBT9TfZBKMwfHHo1tt/eibOuJ8jXsIPcA=; b=MxSHZRXYknO/oA3XNEOsjgWi7CrxTwbjQOvxswiP2Y93LxkSy2h6P9DrhlQ5XkCXIL IgNMmvU3L8f6+kkuWjHq2swT4k+8uNvLpk63V85GOmFwwN8AtQsbrMYTfgPaKw9ezVd+ TAxVgBjAvGG+pxkQ2ECKPB9Qs69nirfy1o2hbjB+FDdQJSxHcrbQEceGCk5CQ2c6WaSA QLXh4Glld/PzpA7tRbegoWgzeGsO5U6GkUg2y/RV5TUzdu+dNB3yZTclbv4M8tEObLTc JlINr0U/2lzosL7kG1bzrb2QyERB6pWwnPwpd2UuiUuvQk3xawRW8un+r6Z64B8V4rXJ IoIQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64-v6si14444645pla.530.2018.05.21.07.33.10; Mon, 21 May 2018 07:33:26 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752841AbeEUOck (ORCPT + 99 others); Mon, 21 May 2018 10:32:40 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36562 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752766AbeEUOcj (ORCPT ); Mon, 21 May 2018 10:32:39 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E7F20BB411; Mon, 21 May 2018 14:32:38 +0000 (UTC) Received: from redhat.com (ovpn-124-61.rdu2.redhat.com [10.10.124.61]) by smtp.corp.redhat.com (Postfix) with SMTP id 8914A2166BAD; Mon, 21 May 2018 14:32:38 +0000 (UTC) Date: Mon, 21 May 2018 17:32:38 +0300 From: "Michael S. Tsirkin" To: Jason Wang Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next 06/12] tuntap: enable premmption early Message-ID: <20180521173230-mutt-send-email-mst@kernel.org> References: <1526893473-20128-1-git-send-email-jasowang@redhat.com> <1526893473-20128-7-git-send-email-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526893473-20128-7-git-send-email-jasowang@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 21 May 2018 14:32:38 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 21 May 2018 14:32:38 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mst@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 05:04:27PM +0800, Jason Wang wrote: > Signed-off-by: Jason Wang typo in subject > --- > drivers/net/tun.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/tun.c b/drivers/net/tun.c > index 44d4f3d..24ecd82 100644 > --- a/drivers/net/tun.c > +++ b/drivers/net/tun.c > @@ -1697,6 +1697,8 @@ static struct sk_buff *tun_build_skb(struct tun_struct *tun, > goto err_xdp; > } > } > + rcu_read_unlock(); > + preempt_enable(); > > skb = build_skb(buf, buflen); > if (!skb) { > @@ -1710,9 +1712,6 @@ static struct sk_buff *tun_build_skb(struct tun_struct *tun, > get_page(alloc_frag->page); > alloc_frag->offset += buflen; > > - rcu_read_unlock(); > - preempt_enable(); > - > return skb; > > err_redirect: > -- > 2.7.4