Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751605AbdFAJQS (ORCPT ); Thu, 1 Jun 2017 05:16:18 -0400 Received: from m12-11.163.com ([220.181.12.11]:39575 "EHLO m12-11.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751582AbdFAJQQ (ORCPT ); Thu, 1 Jun 2017 05:16:16 -0400 Message-ID: <592FDBC4.9000406@163.com> Date: Thu, 01 Jun 2017 17:17:56 +0800 From: Jia-Ju Bai User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: jdmason@kudzu.us, dave.jiang@intel.com, Allen.Hubbe@emc.com CC: linux-ntb@googlegroups.com, LKML Subject: [BUG] ntb: Sleep in interrupt handling Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: C8CowADH1BA72y9Z58j1Hw--.34544S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUy2-eUUUUU X-Originating-IP: [166.111.70.19] X-CM-SenderInfo: xedlyx5dmximizq6il2tof0z/1tbipRvpelUMFC5pYwAAsE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 411 Lines: 13 According to ntb_transport.c, the driver may sleep in interrupt handling. The function call path is: ntb_transport_rxc_db (tasklet_init indicates it handles interrupt) ntb_process_rxc ntb_async_rx ntb_async_rx_submit schedule_timeout --> may sleep This bug is found by my static analysis tool and my code review. I hope to fix it, but I do not have a good solution. Thanks, Jia-Ju Bai