Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752725AbbL1U10 (ORCPT ); Mon, 28 Dec 2015 15:27:26 -0500 Received: from mail-ob0-f179.google.com ([209.85.214.179]:32834 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbbL1U1X (ORCPT ); Mon, 28 Dec 2015 15:27:23 -0500 MIME-Version: 1.0 Reply-To: rajatxjain@gmail.com Date: Mon, 28 Dec 2015 12:27:22 -0800 Message-ID: Subject: debugfs_remove_recursive() while a file is in use by userspace From: Rajat Jain To: "linux-kernel@vger.kernel.org" , linux-newbie@vger.kernel.org Cc: Greg Kroah-Hartman Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 757 Lines: 24 Hi, I wanted to understand the behavior taken when a module calls debugfs_remove_recursive() on a directory, while files under that directory may still be in use by the userspace (for instance an ongoing read / write operation). Does the function wait (1) until all the currently executing file operation methods (read/write/map etc) have returned? OR (2) until the user has given up all references (descriptors) to the files under the directory (i.e. until release() method has been called)? Thanks, Rajat -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/