From patchwork Tue Sep 25 07:41:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Willi X-Patchwork-Id: 974274 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=strongswan.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42KCgd2VG1z9s7T for ; Tue, 25 Sep 2018 17:41:33 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728839AbeIYNrh (ORCPT ); Tue, 25 Sep 2018 09:47:37 -0400 Received: from sitav-80046.hsr.ch ([152.96.80.46]:57407 "EHLO mail.strongswan.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728772AbeIYNrh (ORCPT ); Tue, 25 Sep 2018 09:47:37 -0400 Received: from book.wlp.is (unknown [185.12.128.225]) by mail.strongswan.org (Postfix) with ESMTPSA id 93B9F404AC; Tue, 25 Sep 2018 09:41:27 +0200 (CEST) From: Martin Willi To: Johannes Berg Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Benjamin Beichler Subject: [PATCH 0/3] mac80211_hwsim: radio destruction fixes Date: Tue, 25 Sep 2018 09:41:12 +0200 Message-Id: <20180925074115.18169-1-martin@strongswan.org> X-Mailer: git-send-email 2.17.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This small series fixes two issues for cleaning up hwsim radios. The first one is rather easy to hit when terminating namespaces with many hwsim radios. The second one affects destroy-on-close users only. Given that the use of a work-queue for deferred cleanup with namespaces has been and still is tricky to get right, this series switches these users to a synchronous cleanup in hwsim; The removal of that work-queue is in a dedicated commit in case we want to skip that in backports. Martin Willi (3): mac80211_hwsim: fix locking when iterating radios during ns exit mac80211_hwsim: fix race in radio destruction from netlink notifier mac80211_hwsim: drop now unused work-queue from hwsim drivers/net/wireless/mac80211_hwsim.c | 44 +++++++++++---------------- 1 file changed, 17 insertions(+), 27 deletions(-)