From patchwork Fri May 15 06:26:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varka Bhadram X-Patchwork-Id: 6411561 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B22E79F6E5 for ; Fri, 15 May 2015 06:27:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D396F2038C for ; Fri, 15 May 2015 06:27:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E63C920383 for ; Fri, 15 May 2015 06:27:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753931AbbEOG10 (ORCPT ); Fri, 15 May 2015 02:27:26 -0400 Received: from mail-ig0-f179.google.com ([209.85.213.179]:33641 "EHLO mail-ig0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753717AbbEOG1Z (ORCPT ); Fri, 15 May 2015 02:27:25 -0400 Received: by igbpi8 with SMTP id pi8so29958427igb.0 for ; Thu, 14 May 2015 23:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=fZMseMqxClxpDLPVwJ3rQcosFYlOHrURJtnKjPgmJ7Q=; b=ymZfLx6o8Avhhle6yO7GSpdet+QlGwznXUO7yqphSeSQt9cL4i0dtn91fPwG9qD5XF uhst/gYrxw8hfxlVauVxnSfTbvNQOdl3fng9TceM0+4i8eWphw7qdMvdCDhEo+CSDtwR IZomP1LvlMa9u8QYiSpJr2guTx2JmpMX+j0hoVrx47ngKotGZ7BE+tiKoIGoZKeqE243 TyJwmq6WeyHaXT9uy4YR0UVRl2XK3ZAbdwcnlGIDHcEYlAwCRFRJbccfu96DY5HRTRnk nEqF6hW3KgeE0wtgJrShL25ksGAd3drUPyCFeNeMRkOMEAM4A7mXQ36/KhCl28SrfG3f HkOQ== X-Received: by 10.66.248.195 with SMTP id yo3mr15253933pac.123.1431671244705; Thu, 14 May 2015 23:27:24 -0700 (PDT) Received: from cdac.hyderabad.cdac.in ([196.12.45.164]) by mx.google.com with ESMTPSA id q4sm689797pdo.42.2015.05.14.23.27.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 May 2015 23:27:23 -0700 (PDT) From: Varka Bhadram X-Google-Original-From: Varka Bhadram To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, Varka Bhadram Subject: [PATCH wireless-next] mac80211: fix double flush workqueue Date: Fri, 15 May 2015 11:56:50 +0530 Message-Id: <1431671210-6761-1-git-send-email-varkab@cdac.in> X-Mailer: git-send-email 1.7.9.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In suspend functionality flushing of the workqueue is done with ieee80211_stop_device(). This patch avoid flushing the workqueue for two times. Signed-off-by: Varka Bhadram --- net/mac80211/pm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index ac6ad62..e433d6e 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c @@ -47,8 +47,6 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) /* make quiescing visible to timers everywhere */ mb(); - flush_workqueue(local->workqueue); - /* Don't try to run timers while suspended. */ del_timer_sync(&local->sta_cleanup);