From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755475AbcI2MRX (ORCPT ); Thu, 29 Sep 2016 08:17:23 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57568 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbcI2MRP (ORCPT ); Thu, 29 Sep 2016 08:17:15 -0400 Date: Thu, 29 Sep 2016 13:17:13 +0100 From: Al Viro To: Anton Altaparmakov Cc: linux-fsdevel , Linux Kernel Mailing List Subject: Re: Race condition between iget_locked() and evict_inodes() Message-ID: <20160929121713.GO19539@ZenIV.linux.org.uk> References: <83D4F976-29F7-467A-BC04-50FB7688FF22@tuxera.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83D4F976-29F7-467A-BC04-50FB7688FF22@tuxera.com> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 29, 2016 at 11:53:21AM +0000, Anton Altaparmakov wrote: > Thus if the events happen in this order: > > evict_inodes() iget_locked() in find_inode_fast() ... you are buggered, because somebody is trying to grab a reference to inode on a filesystem that is being shut down. Look at evict_inode() caller...