Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1382556ybx; Thu, 31 Oct 2019 09:47:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNroPqKJnNC7cq4veGBwfM473RkS0smAp0qDaxQMnZZ6Piy3o1Ha59v+fWhhiClZZRVpsX X-Received: by 2002:aa7:dc1a:: with SMTP id b26mr7208972edu.139.1572540434217; Thu, 31 Oct 2019 09:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572540434; cv=none; d=google.com; s=arc-20160816; b=FSpkU9hger+kGS8GEGsjIuJ5i81Xq6uRbjTMI0FglZu0Hp8J19ObFVFaah5ToAd3Ff 8qCqfmnc2BoFQcmv1+xSEWDF/s94JjuAayDBWwEd5v6Ejb3EyHFVbwWHZgTOj+htgp8H KYp0f2axw0SXZimNryVUPBRUquUhAQFu7TJ/4lfhnctxnmy/OD66cs0FXAzqt80k60n1 uUT4tUZMfE+yOrdRKwAiPJIW796LP0qaFWMLUHq0Q7RVtR8fmWzM6YFF4GXpQc493Ue9 v6Vu1P7oBIxUSkTUn5dByiiJN9rimPJh0zZ9cRFCqXFIQHEhqUMnoNa5EHcizLCyL3xl U2JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=u+tUIBYHKvIkuL4G7fc5AXLA5rHt3MekdCaxn1sE414=; b=cUG3BvN6/i6PtUZkgAEKxeQdyd+BUz07S9VRK8Z4L+QUA0WObSQpVutCdPQvQmJ1zc EBWlaEsHaQl90a4zeEp5bs3KPX88nnNZsHHgau/3VEd4Dtco+Mt8/R4b2B1en3uPU387 N/mrCAExHCZLul4qCEhTur4Wu3yQV7bSTrnqCrOpACDqobuMMSLSeJCSANtu1Q8erJAW p0W1lnMrfbSX88EAcHWHuMmBQWdLbd5rYsOozM02YP4axoWGdo5TibfN+YcpHrIbUSAQ Lvxn9UOlY10o3+8sILUT7OQ63c9uTVRx7xHih94Wf+go0Bpbxk/4Uvb5E9KykJDU9JvF xWwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=P4vIvrUd; 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=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si3890409eju.296.2019.10.31.09.46.51; Thu, 31 Oct 2019 09:47:14 -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=@narfation.org header.s=20121 header.b=P4vIvrUd; 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=NONE dis=NONE) header.from=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728705AbfJaQpq (ORCPT + 99 others); Thu, 31 Oct 2019 12:45:46 -0400 Received: from dvalin.narfation.org ([213.160.73.56]:56938 "EHLO dvalin.narfation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727715AbfJaQpq (ORCPT ); Thu, 31 Oct 2019 12:45:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1572540344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=u+tUIBYHKvIkuL4G7fc5AXLA5rHt3MekdCaxn1sE414=; b=P4vIvrUd4lipMC3PeEFVUQRsUdQPvM6OSOh/PPMV99gRQ+QAiB5CWAmb9kdnSDU56Tlu9c Y5b0ky0JpNSjnnBed6B/UlAxMbbbS7CozSdxZCD3QlzcxEKlcM6tZLZgdIL0LFO6mN0t9z Rzj4PgXZIeN+q4U/b9ONfNCv8p6rICw= From: Sven Eckelmann To: Christophe JAILLET Cc: davem@davemloft.net, mareklindner@neomailbox.ch, sw@simonwunderlich.de, a@unstable.cc, b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] batman-adv: Axe 'aggr_list_lock' Date: Thu, 31 Oct 2019 17:45:40 +0100 Message-ID: <34947339.t7yNZRQCJl@sven-edge> In-Reply-To: <20191031085240.7116-1-christophe.jaillet@wanadoo.fr> References: <20191031085240.7116-1-christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1950623.Tr5mk9XeTM"; micalg="pgp-sha512"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart1950623.Tr5mk9XeTM Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Thursday, 31 October 2019 09:52:40 CET Christophe JAILLET wrote: > 'aggr_list.lock' can safely be used in place of another explicit spinlock > when access to 'aggr_list' has to be guarded. > > This avoids to take 2 locks, knowing that the 2nd one is always successful. > > Now that the 'aggr_list.lock' is handled explicitly, the lock-free > __sbk_something() variants should be used when dealing with 'aggr_list'. > > Signed-off-by: Christophe JAILLET > --- > Compile tested only. Applied together with your other patch. Thanks, Sven --nextPart1950623.Tr5mk9XeTM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAl27D7QACgkQXYcKB8Em e0ZQrhAAwKtHzM6URp++7gAYx8jfbNu1SHKYF4CFTq0mjqjQZBLuZaWg8eYALQDa Quv7JVBrkEog8zGs8k9mqnL8TfgXvwKQvmvhHV4eecC/slqSn0wF+VzSdaUY3CXG BHCtj8kbiu0dmBPHt31agMDjNBoyF6UwhIT1SK1C8UfJq+Rsc3hUXxmPwm7BX8rU dzTeUTpZ+BmIVFWlnvcNYMNTmwM8U7NLZ/rpHXw+gsOFcA5F7+ven4L+2wTmutJL IGAhrIuGZsEhYe+xu7WRahNed8CcoeeU//qg6E6JKNETE27sf4tgzQbsQmSWAqgf dbm2LSby6BCdYUTYkDmQR3Ds6pNbUfg2jyhliNCrDtsvn5MMiR4RaXl0pkEoEt+v /EK3jrAR13mUcAcelIJrHOG0HzhX+vVGLySKegGoM5mElltIxQ3g/9hnGUvtU6t4 JvHdQZARYGuMDGK2U9fDSO9dMVr+qq20PX3hNacE6U6Q7uknW9H2jHfmv/hg0bJO DjfcXdYuBw4qEPdPCRFEUkDJLvGrXBnfKqkHjARHK4DBdyWRBl5mT4lppgT5wcCk KWxvT9ImoWFiDAeJAMVzXyYMrYny6vqyMTgebMz98K666ue6e34znyY4cCj2kY8O iy5kw2J7v0u30kwHd/fdota1yKA0j28TVTDxmjyEEhZWhyb4bzA= =Hpom -----END PGP SIGNATURE----- --nextPart1950623.Tr5mk9XeTM--