Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753846AbaDNBiU (ORCPT ); Sun, 13 Apr 2014 21:38:20 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:17652 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbaDNBiQ convert rfc822-to-8bit (ORCPT ); Sun, 13 Apr 2014 21:38:16 -0400 X-AuditID: cbfee691-b7efc6d0000039d3-50-534b3c06d875 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT Message-id: <1397439375.24638.20.camel@kjgkr> Subject: Re: [PATCH 1/7] f2fs: put the bio when issue_flush completed From: Jaegeuk Kim Reply-to: jaegeuk.kim@samsung.com To: Gu Zheng Cc: f2fs , fsdevel , linux-kernel Date: Mon, 14 Apr 2014 10:36:15 +0900 In-reply-to: <5347BAAF.9030004@cn.fujitsu.com> References: <5347BAAF.9030004@cn.fujitsu.com> Organization: Samsung X-Mailer: Evolution 3.2.3-0ubuntu6 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsVy+t8zQ102G+9gg5tdNhbP2w8wW1xa5G6x Z+9JFovLu+awObB4/D84idlj94LPTB6fN8kFMEdx2aSk5mSWpRbp2yVwZbzokC14z13x/3sj awPjZs4uRk4OCQETiW2b7zND2GISF+6tZ+ti5OIQEljGKLFn8002mKKGE4eZQGwhgUWMEleX s4PYvAKCEj8m32MBsZkF1CUmzVvEDGGLSLx5fh7K1pZYtvA1M8TQV4wSd/b/YoFo1pVY8qYN zBYWcJX4sb4VaBkHBxtQw+b9BhC7FCXe7r/LCmKLCKhJPHt3iQlkDrNAN6PE2fWvwI5gEVCV WLDzNZjNKaAn8bX1EgtEs67E6RMPwWx+AVGJwwu3Q32pJLG7vZMdZJCEwDF2iR2TPzFBDBKQ +Db5EAvIERICshKbDkDVS0ocXHGDZQKj5CwkP89C8vMsJD/PQvLzAkaWVYyiqQX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n967aekuCDRK2dtqIX1ply3fyjnWPn/Zv1iF7GyYYJE5exLjorrlucylF4 wHFaWuGGBVOKDllP9VH8qBObtnxva4RJbCPXAaPDkTdLF5xbPHX5dbuP01glDLavOP1Kym1J Y9bMhwK9p996yNQqsRRnJBpqMRcVJwIAUSffMyoDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gu, Merged. thank you. :) 2014-04-11 (금), 17:49 +0800, Gu Zheng: > Put the bio when the flush cmd issued, it also can fix the following > kmemleak: > unreferenced object 0xffff8800270c73c0 (size 200): > comm "f2fs_flush-7:0", pid 27161, jiffies 4312127988 (age 988.503s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 40 07 81 19 01 88 ff ff ........@....... > 01 00 00 00 00 00 00 f0 11 14 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x72/0x96 > [] slab_post_alloc_hook+0x28/0x2a > [] kmem_cache_alloc+0xec/0x157 > [] mempool_alloc_slab+0x15/0x17 > [] mempool_alloc+0x71/0x138 > [] bio_alloc_bioset+0x93/0x18c > [] issue_flush_thread+0x8d/0x145 [f2fs] > [] kthread+0xba/0xc2 > [] ret_from_fork+0x7c/0xb0 > [] 0xffffffffffffffff > > Signed-off-by: Gu Zheng > --- > fs/f2fs/segment.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c > index 085f548..524b7ed 100644 > --- a/fs/f2fs/segment.c > +++ b/fs/f2fs/segment.c > @@ -226,6 +226,7 @@ repeat: > next = cmd->next; > complete(&cmd->wait); > } > + bio_put(bio); > sm_i->dispatch_list = NULL; > } > -- Jaegeuk Kim Samsung -- 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/