Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2569718yba; Mon, 22 Apr 2019 09:05:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwc4gJ6uGPCH2tu8VVKbzctmLSGc2ic6y0K3NIX0/J/4B2qVZf9RPczdJ6nkUGDhP+zSX6l X-Received: by 2002:a17:902:a607:: with SMTP id u7mr3001046plq.66.1555949135715; Mon, 22 Apr 2019 09:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555949135; cv=none; d=google.com; s=arc-20160816; b=pYMvckuNojoHnxD8ulCn421KRMNuL3/bevalhAZCW6Lz8/9xLVBTLsmqiZEr96G3J/ niSrrl6CseyQqpGxYwwaRnoViQxwQubk0FOrecmxltrjC78dfHKawu6Ym9sKUsSqJ1Xp RI3orF8mbvGp3wTqYuI1yhM1HLm1wFad6OXNN9PqmFMlkm22B617ZScegW3YdyN1uhFT ddmIYMzfkBWazvQl6QNuCgST0TCi+suIYFRKQD0M4UCVZq+cATcP4VJvPP34nMBYHjWo f5tvPau8tkTOrdjiqGfkJW5N8uiOtlVC4pqjD2d+6/RUw9BPreJo6eijssLCFFwAwpR5 kOOQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=kXkiAfTwmCa9p1Avt7HB+P8BjxcnubiRLfnKV0dvTXc=; b=SXOGfog3ITxOEMP0oAGmBVE4cnh8tIwj8WX7ll3zJQcFeZEIYtQaidVMQzBP35frfj hMXFNdkkhFX+m5VHRcJfTPQkq0cL+MnvcBWDt9xMzCaf32Lb8XuHSfX36hplFoFKcc/V lV8/ELPGun6HsSppV/gY8VcMgJsUFEC3u411GXgAaqtI/t+6Zdy/oWji1ZNLr+9h7G3l W2b2ADXwax8UNzIkmbjNNTrPJr+6DA40C4YI/mdR9vjK3d2fHxF4pN9Ea/Dmp4twMx9J a74sJ0THJdHgnkZxQnknTConqvdbZuSPBiksTXeFX6BkZmppjCFmfsPLxpWjH8bNH0Gi 6N8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nQxrawuX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12si13380751pfe.11.2019.04.22.09.05.16; Mon, 22 Apr 2019 09:05:35 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nQxrawuX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727536AbfDVQEJ (ORCPT + 99 others); Mon, 22 Apr 2019 12:04:09 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:40155 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfDVQEI (ORCPT ); Mon, 22 Apr 2019 12:04:08 -0400 Received: by mail-pl1-f195.google.com with SMTP id b3so6018231plr.7; Mon, 22 Apr 2019 09:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kXkiAfTwmCa9p1Avt7HB+P8BjxcnubiRLfnKV0dvTXc=; b=nQxrawuXjuOuIl4OmDuQUizpd21r0JiUnbHOwTggTYT5Tk/XgdSTLpxOeAJnHNbG/4 TfRLNxTz+wzw25maA+pZOQd2TQmo5JLU9tV1oG9tIirC25vZoWNqBq1bhmRXyWKYiRBD Xx8J1fl5h4lFelP4Yx+KfY2Qe3PI1/Xb5GwyvspT0L0LREMihWHp6oCO4QEZqrlNFfFB /+xDk0Kj8v5xb3ZrwAj57mCTcUe47t4YienfrIQykRBgeKKo8AyIsyZgH9xBKBpNBJrF Jlf9uR0hg6ZbvZgtHO4qZCfvUbSfLUEjFoKfiIr1YTD78kD1FsCzYK1eyqUcdLOiJk6e 5l+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kXkiAfTwmCa9p1Avt7HB+P8BjxcnubiRLfnKV0dvTXc=; b=hn6RWktBVCmZDCX/mCqjPAc/TUrJQ6sTXV9RLN0pHBbRz0rfRBz1hZVgB7EKqmITuX PaDLEGDS7aVIXPvufmH7qYL7hIWXVWkY+xtKF+70csmVZmOV1n3xmLldSbXXINpnPPKt 1JGRigPI/6OmQmM+VZUXPulwn83zvQKBKKtDf2qAs5/DQ1NtXUU6naKnF63Lnf8Q/X0H nTPZyxoI707PaV7td6IMnGpppikAvN9Rxhy2GnECZ2IlP8uenq80Rzi9Kyo771Gnh6nM uuNqSbCFTPdoPpTt9XsvdHDsPSCB2LmooMqJfF92dBbJG/zf4QKY3/DyeHjvVvlipVMb uxsw== X-Gm-Message-State: APjAAAXCeYaQwKkjo4GXtbyrUbs28i/X3brom9lyglAvvBYmjXgElZeE ICIAKv+XuHlyKRjC84lJX1c= X-Received: by 2002:a17:902:5a3:: with SMTP id f32mr18303329plf.82.1555949048266; Mon, 22 Apr 2019 09:04:08 -0700 (PDT) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id q128sm19279928pga.60.2019.04.22.09.04.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 09:04:07 -0700 (PDT) Subject: Re: unregister_netdevice: waiting for DEV to become free (2) To: David Ahern , Stephen Suryaputra Cc: Tetsuo Handa , Julian Anastasov , Cong Wang , syzbot , ddstreet@ieee.org, dvyukov@google.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <0000000000007d22100573d66078@google.com> <4684eef5-ea50-2965-86a0-492b8b1e4f52@I-love.SAKURA.ne.jp> <20190421204126.GA19213@ubuntu> <458669e6-3d94-1daf-f80b-3c8d740790fa@gmail.com> From: Eric Dumazet Message-ID: <925fe55a-918e-e899-6f3c-43731712e369@gmail.com> Date: Mon, 22 Apr 2019 09:04:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <458669e6-3d94-1daf-f80b-3c8d740790fa@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/22/2019 07:58 AM, David Ahern wrote: > On 4/21/19 2:41 PM, Stephen Suryaputra wrote: >> Hi David, >> >> I looked at patchwork. This patch hasn't been accepted. Is there a plan >> to resubmit? It is very useful. I had to debug refcnt issues multiple >> times for my employer. > > I think the inlined versions of dev_put and dev_hold are better for > performance. > > I could submit it with a DEBUG config to enable. It has been invaluable > to me over the past 3+ years debugging refcount problems. > Sounds a good plan to me :)