Return-path: Received: from mail-wi0-f178.google.com ([209.85.212.178]:47682 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753639Ab2HAKsT (ORCPT ); Wed, 1 Aug 2012 06:48:19 -0400 MIME-Version: 1.0 In-Reply-To: References: <1343765698.4474.10.camel@jlt3.sipsolutions.net> Date: Wed, 1 Aug 2012 14:48:18 +0400 Message-ID: (sfid-20120801_124847_391733_28859E4A) Subject: Re: wlcore: might_sleep operation in interrupt handler From: Denis Yefremov To: Johannes Berg Cc: Luciano Coelho , "John W. Linville" , Eliad Peller , Arik Nemtsov , Eyal Shapira , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@ispras.ru Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Sorry. My mistake. In this case it seems that sleep functions can be called from thread_fn, since interrupt line is disabled globally. And nothing bad will happen if you know that device can be blocked for relatively long time.