Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp213880ybk; Tue, 19 May 2020 20:22:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcqEpXq090PBax2HRPYKBH+d4JCGN2gzOYe05gmesx1fhqRC3oM/5SbqMgGqTo7ihguQ9d X-Received: by 2002:a17:906:cd08:: with SMTP id oz8mr2272153ejb.90.1589944935310; Tue, 19 May 2020 20:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589944935; cv=none; d=google.com; s=arc-20160816; b=m8Gkdf0U3Xdzq0MgLq3eS0Trs2Ursfn+5pKgM3BhFJj+lbnvFN8Kp+nIJcXuPNRlfy zUablK9nTkFhpl26606p1K73nTZicwVARsQe+mVFUTT0p7Ux0KYC/3hLYvdEd/gJ8tLo rSyZHpeV9Pozr0gtkYNrLu0aEYd+fmnQNt6upbcStcELuLyNzyhtwjo/sJm9HcWSHADi TjL7ghAM10ygwhe8l5vRk+LMqsTM5lPrOqcyrz9c/MDNWw3vboVVTH7ggLQDt0ESIyIz HzXQjGhVeUB4e9+GmRAQEjLs8aI7rN3gFupvU0Dace6H1i14d5wVyQevluyCzOsl9ozq Lo5A== 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=5WJmSfBCJ9T93UY4usILNY67jnm3iHHEW+ii4uy79rA=; b=lpNiQqthpsOIlBQJ3rSfiXpLR/14JrBAdQ/KDvROq64Sd7VKCwJzMWMDe5Rc5reuaS JiSpW1T0UWg4t+P4rwX/gmXdRLMml+cIg9QI4AX+BzEyxdXVS34E5DkwEe6u0LYQHJKk 9xExRUhrMB8VZfnnPJhleD6zoVvxKQ9eOR5prVsOnUYH42PQtFwnU990EN3dMF40a/tl 6pquH2Ie47fA6Ql8+65qXGFb1E5+G8C29jyWBa8f7WFm7s9gWoOB/eQ8HlhkQ+OHVdSN NjGHHrWp9UScIu8rU0z9Vy42vSHPslN8joVx7bE9/oiNhWXwCkzlo3YJW6dpfX18ZaDI xRJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a2zFSYje; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o59si778154eda.39.2020.05.19.20.21.52; Tue, 19 May 2020 20:22:15 -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=@gmail.com header.s=20161025 header.b=a2zFSYje; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbgETDSY (ORCPT + 99 others); Tue, 19 May 2020 23:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728176AbgETDSX (ORCPT ); Tue, 19 May 2020 23:18:23 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D12EC061A0E; Tue, 19 May 2020 20:18:23 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 23so882859pfy.8; Tue, 19 May 2020 20:18:23 -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=5WJmSfBCJ9T93UY4usILNY67jnm3iHHEW+ii4uy79rA=; b=a2zFSYje3WXYsySWDH3RMzx0U5fYPGVj7Rjb2+WGbvq9lB/IA44wj2HOVze+8NAk3h SpAjRZAlMqacFIWLp+DW/APzTrI8A1ULtaTXVZHDpw9gGa92kstm3VcyO8bS14b7j+LU +nFXjmLiKaih88zLlkBG/dynHppeDHoC8gvWlKuSZI3o8sqovnTYpAXC7D8TPEElKE+u wa8IFA0UqUKMwTWdu1HgUUD6lYRkS1PYwkqtJv8oQ1j1DAjOcRCXeGWqTrp6WTE3cI46 /IcdnToawUSE/JzvU7KfdbbRd0QNm8QAWXMfHpNXvzSkPCufefKttAWVk0spAUlZcCko MIfQ== 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=5WJmSfBCJ9T93UY4usILNY67jnm3iHHEW+ii4uy79rA=; b=EKRCpQm5fCjH3ci9R0yA4VgyB1EvmI9dnpbPCSNi7c/ZLk8wf0jlZygN5/yfnKn9lN ZRnuYqT00WGB6Uw2eAMrQDNCEQQVdP7OCiyyxtro1CC/vWG6FgiuYvFCLXmwZ0HcaA7S Z5u+2Fmr3vwY9GczvY1TM2oJcJ55cmegHTFgNjAgh4cj88g9yC4zQFHUPz2obPYCZwVW gS/Yb23tycKSiJjGu6tRKzuLzorCAg6U5+gg2p8NhIWLw18ZwqTFcoQpswvbj4F+8DTO 3y4BnZDGnjB6IludobiaU9FqmD2qqITcobinB+RUhvLLx5+F9eyOmv8Y1vnM0mEWvxOB 2UEA== X-Gm-Message-State: AOAM530tHfamjI552yF4kJpjPa+INQlMpHOjFknHLVanGI51l4UkVm6P ljr/0RAjC6wAQKRpv564/oMKJdmr X-Received: by 2002:a63:c58:: with SMTP id 24mr2226622pgm.246.1589944702433; Tue, 19 May 2020 20:18:22 -0700 (PDT) Received: from [192.168.86.235] (c-73-241-150-58.hsd1.ca.comcast.net. [73.241.150.58]) by smtp.gmail.com with ESMTPSA id n205sm733624pfd.50.2020.05.19.20.18.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 May 2020 20:18:21 -0700 (PDT) Subject: Re: [PATCH v1 01/25] net: core: device_rename: Use rwsem instead of a seqcount To: David Miller , tglx@linutronix.de Cc: stephen@networkplumber.org, a.darwish@linutronix.de, peterz@infradead.org, mingo@redhat.com, will@kernel.org, paulmck@kernel.org, bigeasy@linutronix.de, rostedt@goodmis.org, linux-kernel@vger.kernel.org, kuba@kernel.org, netdev@vger.kernel.org References: <87v9kr5zt7.fsf@nanos.tec.linutronix.de> <20200519161141.5fbab730@hermes.lan> <87lfln5w61.fsf@nanos.tec.linutronix.de> <20200519.195722.1091264300612213554.davem@davemloft.net> From: Eric Dumazet Message-ID: <886041df-d889-3d88-59fe-e190d15f9c98@gmail.com> Date: Tue, 19 May 2020 20:18:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200519.195722.1091264300612213554.davem@davemloft.net> 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 5/19/20 7:57 PM, David Miller wrote: > From: Thomas Gleixner > Date: Wed, 20 May 2020 01:42:30 +0200 > >> Stephen Hemminger writes: >>> On Wed, 20 May 2020 00:23:48 +0200 >>> Thomas Gleixner wrote: >>>> No. We did not. -ENOTESTCASE >>> >>> Please try, it isn't that hard.. >>> >>> # time for ((i=0;i<1000;i++)); do ip li add dev dummy$i type dummy; done >>> >>> real 0m17.002s >>> user 0m1.064s >>> sys 0m0.375s >> >> And that solves the incorrectness of the current code in which way? > > You mentioned that there wasn't a test case, he gave you one to try. > I do not think this would ever use device rename, nor netdev_get_name() None of this stuff is fast path really. # time for ((i=1;i<1000;i++)); do ip li add dev dummy$i type dummy; done real 0m1.127s user 0m0.270s sys 0m1.039s