From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755021AbdCWOyu (ORCPT ); Thu, 23 Mar 2017 10:54:50 -0400 Received: from s3.sipsolutions.net ([5.9.151.49]:42080 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249AbdCWOyt (ORCPT ); Thu, 23 Mar 2017 10:54:49 -0400 Message-ID: <1490280886.2766.4.camel@sipsolutions.net> Subject: deadlock in synchronize_srcu() in debugfs? From: Johannes Berg To: linux-kernel Cc: Nicolai Stange , "Paul E.McKenney" , gregkh Date: Thu, 23 Mar 2017 15:54:46 +0100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.4-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Before I go hunting - has anyone seen a deadlock in synchronize_srcu() in debugfs_remove() before? We're observing that with our (backported, but very recent) driver against 4.9 (and 4.10, I think), but there are no backports of any debugfs things so the backport itself doesn't seem like a likely problem. sysrq-w shows a lot of tasks blocked on various locks (e.g. RTNL), but the ultimate problem is the wireless stack getting blocked on debugfs_remove_recursive(), in __synchronize_srcu(), in wait_for_completion() (while holding lots of locks, hence the other tasks getting stuck). Thanks, johannes