Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755171AbbHYGjW (ORCPT ); Tue, 25 Aug 2015 02:39:22 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:50214 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751838AbbHYGjV (ORCPT ); Tue, 25 Aug 2015 02:39:21 -0400 X-AuditID: cbfee61b-f79706d000001b96-67-55dc0d8afc53 From: Chao Yu To: Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <001b01d0de51$0b369c70$21a3d550$@samsung.com> <20150824165423.GC2837@jaegeuk-mac02.mot-mobility.com> <20150824225105.GA8056@jaegeuk-mac02.mot.com> In-reply-to: <20150824225105.GA8056@jaegeuk-mac02.mot.com> Subject: RE: [f2fs-dev] [PATCH 2/2] f2fs: fix to release inode correctly Date: Tue, 25 Aug 2015 14:38:00 +0800 Message-id: <000001d0df00$bd37d010$37a77030$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQIO0Bg33esmKHUsU90kfH4EvwCJ2AJRWsg+ApayZCqdeM1PIA== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t9jAd0u3juhBp/+i1g8WT+L2eLSIneL y7vmsDkwe2xa1cnmsXvBZyaPz5vkApijuGxSUnMyy1KL9O0SuDL2PtnCUjCBr2Lx1RWsDYwP uLoYOTkkBEwk3vy6wAphi0lcuLeerYuRi0NIYCmjxMc5O9khnFeMErea77CDVLEJqEgs7/jP BGKLANmHFl0GizMLeEg0dnxnhWhYxCjRv72fGSTBKWAlcf5wP1iRMFDRkr6dYDaLgKrE8+7D YDavgKXEh+Wz2CBsQYkfk++xQAzVkli/8zgThC0vsXnNW2aIUxUkdpx9zdjFyAF0hJPE87mc ECXiEhuP3GKZwCg0C8mkWUgmzUIyaRaSlgWMLKsYJVILkguKk9JzjfJSy/WKE3OLS/PS9ZLz czcxgsP+mfQOxsO73A8xCnAwKvHwflh4O1SINbGsuDL3EKMEB7OSCO/zjUAh3pTEyqrUovz4 otKc1OJDjNIcLErivPomm0KFBNITS1KzU1MLUotgskwcnFINjLqvm5O2FNmuYm4VmlcWK/Bh n8/096+ZIr6waMmfLfjO8ujx3KuzT/33vaNye218icW9ax1HVkU9/ujY1jH3mkvb/o6LHqt+ q+8VmsVrr7yx93pHqNGzN18Z7PRvGkuXsM+5ztt786mflYz9lt/vJs3Zy7Pz5ieexKoL9uwO /ae3OzL1nBJc+kWJpTgj0VCLuag4EQD4XTt3dwIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2003 Lines: 55 Hi Jaegeuk, > -----Original Message----- > From: Jaegeuk Kim [mailto:jaegeuk@kernel.org] > Sent: Tuesday, August 25, 2015 6:53 AM > To: Chao Yu > Cc: linux-kernel@vger.kernel.org; linux-f2fs-devel@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 2/2] f2fs: fix to release inode correctly > > Hi Chao, > > On Mon, Aug 24, 2015 at 09:54:23AM -0700, Jaegeuk Kim wrote: > > On Mon, Aug 24, 2015 at 05:40:45PM +0800, Chao Yu wrote: > > > In following call stack, if unfortunately we lose all chances to truncate > > > inode page in remove_inode_page, eventually we will add the nid allocated > > > previously into free nid cache, this nid is with NID_NEW status and with > > > NEW_ADDR in its blkaddr pointer: > > > > > > - f2fs_create > > > - f2fs_add_link > > > - __f2fs_add_link > > > - init_inode_metadata > > > - new_inode_page > > > - new_node_page > > > - set_node_addr(, NEW_ADDR) > > > - f2fs_init_acl failed > > > - remove_inode_page failed > > > - handle_failed_inode > > > - remove_inode_page failed > > > - iput > > > - f2fs_evict_inode > > > - remove_inode_page failed > > > - alloc_nid_failed cache a nid with valid blkaddr: NEW_ADDR > > Unfortunately, this couldn't fix my bug case. Another thing I note is that: we do not cover free_nid_list_lock with build_lock, so when we are building free nid cache, we can change the status of free nid cache, so I guess it is one possible suspect who cause our nid issue. And, could you share me the information for reproducing the nid reallocation issue? So I can reproduce in my environment for invistigating. > I'm still struggling to find out something tho. > Meanwhile, let's stay with both of the patches. OK. Thanks, -- 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/