Return-Path: Received: from mail-oi0-f67.google.com ([209.85.218.67]:35240 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965113AbcHJS4R (ORCPT ); Wed, 10 Aug 2016 14:56:17 -0400 MIME-Version: 1.0 In-Reply-To: References: <20160810053947.GG21941@yexl-desktop> From: Linus Torvalds Date: Wed, 10 Aug 2016 11:56:15 -0700 Message-ID: Subject: Re: [lkp] [nfsd] b44061d0b9: BUG: Dentry ffff880027d7c540{i=1846f,n=0a} still in use (1) [unmount of btrfs vda] To: Josef Bacik Cc: kernel test robot , Al Viro , Chris Mason , David Sterba , "J. Bruce Fields" , LKML , LKP , linux-btrfs , Linux NFS Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: On Wed, Aug 10, 2016 at 11:46 AM, Josef Bacik wrote: > > So my naive fix would be something like this Bruce? Josef's patch looks ObviouslyCorrect(tm) to me now that I look at it - all the other callers of fh_compose() also seem to just drop the dentry unconditionally, knowing that fh_compose() took a ref to it if needed. In fact, the only thing I'd do differently would be to not even put the comment there at all, since this call site isn't any different from any of the others. If anything, it could go on fh_compose() if we want to add comments. Linus