From patchwork Fri Sep 8 14:11:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Beichler X-Patchwork-Id: 9944363 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3F54660224 for ; Fri, 8 Sep 2017 14:17:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4092628646 for ; Fri, 8 Sep 2017 14:17:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 359C92877B; Fri, 8 Sep 2017 14:17:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37DD428710 for ; Fri, 8 Sep 2017 14:17:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753808AbdIHOQq (ORCPT ); Fri, 8 Sep 2017 10:16:46 -0400 Received: from edge01.uni-rostock.de ([139.30.8.12]:32077 "EHLO edge01.uni-rostock.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752955AbdIHOQp (ORCPT ); Fri, 8 Sep 2017 10:16:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; d=uni-rostock.de; s=itmz; c=simple/simple; t=1504879882; h=from:subject:to:date:message-id; bh=0aS4KD5c6k82Jiytjvi6KorixCyHdAhZaqzaLonvFv4=; b=QNzWthG95T7ECOzwnqyq+OPeNvaslq3ixH2QqN9/fLrGbiVsjw3EdfkICzm9jp5LD4lmJc9LBLs I4eM7zZEk9h6LxjkpISoRWQWGntDeRx+RypvZvxVNnuwWhl5So1LlUiQBAXp1QJv8CgHtfIYPPFWP YkpPvuiLLrhFHfZ12to= Received: from MAIL1.uni-rostock.de (139.30.8.233) by edge01.uni-rostock.de (139.30.8.12) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 8 Sep 2017 16:11:22 +0200 Received: from BB-manjaroVM.amd.e-technik.uni-rostock.de (139.30.201.147) by mail1.uni-rostock.de (139.30.8.210) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 8 Sep 2017 16:11:19 +0200 From: Benjamin Beichler To: CC: Johannes Berg , Benjamin Beichler Subject: [RFC 3/4] mac80211_hwsim: explicitly set netlink parallel ops to false Date: Fri, 8 Sep 2017 16:11:36 +0200 X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170908141137.3941-1-benjamin.beichler@uni-rostock.de> References: <20170908141137.3941-1-benjamin.beichler@uni-rostock.de> MIME-Version: 1.0 X-Originating-IP: [139.30.201.147] X-PMWin-Version: 3.1.3.0, Antivirus-Engine: 3.69.2, Antivirus-Data: 5.43 Message-ID: <593fec4f-fc0c-4610-b144-35760ee92102@MAIL1.uni-rostock.de> X-PMWin-Version: 3.1.4.0, Antivirus-Engine: 3.69.2, Antivirus-Data: 5.43 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ops field is zero initialized, therefore parallel ops is already false. This implicates that the netlink callbacks are not processed in parallel. Maybe this could be utilized to reduce locking overhead or maybe also parallel ops could be implemented. Signed-off-by: Benjamin Beichler --- drivers/net/wireless/mac80211_hwsim.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 62c5a00a76c3..5dd4be2a8487 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3499,6 +3499,7 @@ static struct genl_family hwsim_genl_family __ro_after_init = { .n_ops = ARRAY_SIZE(hwsim_ops), .mcgrps = hwsim_mcgrps, .n_mcgrps = ARRAY_SIZE(hwsim_mcgrps), + .parallel_ops = false }; static void destroy_radio(struct work_struct *work)