From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79B12C49ED7 for ; Thu, 19 Sep 2019 03:55:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 498D821848 for ; Thu, 19 Sep 2019 03:55:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731533AbfISDzn (ORCPT ); Wed, 18 Sep 2019 23:55:43 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:40802 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731435AbfISDzn (ORCPT ); Wed, 18 Sep 2019 23:55:43 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iAnXX-0007X9-Fx; Thu, 19 Sep 2019 03:55:31 +0000 Date: Thu, 19 Sep 2019 04:55:31 +0100 From: Al Viro To: "zhengbin (A)" Cc: Linus Torvalds , kernel test robot , Jan Kara , Andrew Morton , linux-fsdevel , "zhangyi (F)" , renxudong1@huawei.com, Hou Tao , LKP Subject: Re: 266a9a8b41: WARNING:possible_recursive_locking_detected Message-ID: <20190919035531.GL1131@ZenIV.linux.org.uk> References: <20190914161622.GS1131@ZenIV.linux.org.uk> <20190916020434.tutzwipgs4f6o3di@inn2.lkp.intel.com> <20190916025827.GY1131@ZenIV.linux.org.uk> <20190916030355.GZ1131@ZenIV.linux.org.uk> <20190916171606.GA1131@ZenIV.linux.org.uk> <20190917120117.GG1131@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Sep 19, 2019 at 11:36:28AM +0800, zhengbin (A) wrote: > >> + dput(to); > >> dput(to) should be in if if (file->f_pos > 2)? cause we dget(to) in scan_positives > > dput(NULL) is a no-op > > +    spin_unlock(&dentry->d_lock); > +    dput(*res); > +    *res = found; > +    return p; > > dput(*res) should be removed? Huh? Why would it? We drop the original reference and replace it with the new one; what's the problem?