From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [PATCH 0/11] Per-bdi writeback flusher threads v9 Date: Wed, 03 Jun 2009 10:46:21 +0300 Message-ID: <4A262A4D.5090509@nokia.com> References: <1243511204-2328-1-git-send-email-jens.axboe@oracle.com> <4A1E9D0B.4090402@gmail.com> <4A1E9D8B.8020908@gmail.com> <1243542908.6645.104.camel@laptop> <4A20011E.7020900@nokia.com> <20090529155046.GH11363@kernel.dk> <4A20072B.7050807@nokia.com> <20090529170742.GI11363@kernel.dk> <4A2628A7.9080407@nokia.com> <20090603074417.GC11363@kernel.dk> Reply-To: Artem.Bityutskiy@nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Artem Bityutskiy , Peter Zijlstra , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "tytso@mit.edu" , "chris.mason@oracle.com" , "david@fromorbit.com" , "hch@infradead.org" , "akpm@linux-foundation.org" , "jack@suse.cz" , "yanmin_zhang@linux.intel.com" , "richard@rsk.demon.co.uk" , "damien.wyart@free.fr" To: Jens Axboe Return-path: Received: from smtp.nokia.com ([192.100.122.233]:51888 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755008AbZFCHrV (ORCPT ); Wed, 3 Jun 2009 03:47:21 -0400 In-Reply-To: <20090603074417.GC11363@kernel.dk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Jens Axboe wrote: >> Just to make sure I understood you correctly. I assume my original >> patch is fine (because there is bdi_destroy()) and merge it to >> ubifs tree. >=20 > It needs to be: >=20 > err =3D bdi_register(&c->bdi, NULL, "ubifs"); > if (err) > goto out_bdi; >=20 > so you hit the bdi_destroy() for that failure, not goto out_close; > Otherwise it was fine. Ah, I see. Rather non-typical convention though. I expected bdi_register() to clean-up stuff in case of failure. Isn't it a better interface? --=20 Best Regards, Artem Bityutskiy (=D0=90=D1=80=D1=82=D1=91=D0=BC =D0=91=D0=B8=D1=82=D1=8E= =D1=86=D0=BA=D0=B8=D0=B9) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html