From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: Re: block-rbd: One function call less in rbd_dev_probe_parent() after error detection Date: Tue, 24 Nov 2015 21:34:58 +0100 Message-ID: <5654C9F2.20409@users.sourceforge.net> References: <5307CAA2.8060406@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <56536BAD.4000309@users.sourceforge.net> <56536D12.4000308@users.sourceforge.net> <5654B91D.4040808@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: kernel-janitors-owner@vger.kernel.org To: Ilya Dryomov Cc: Alex Elder , Sage Weil , Ceph Development , LKML , kernel-janitors@vger.kernel.org, Julia Lawall List-Id: ceph-devel.vger.kernel.org > Well, there isn't any _literal_ linking (e.g. adding to a link list, > etc) in this case. We just bump some refs and do probe to fill in the > newly allocated parent. Thanks for your clarification. > The actual linking (rbd_dev->parent = parent) is done right before > returning so we never have to undo it in rbd_dev_probe_parent() and > that's the only reason your patch probably doesn't break anything. Is this function implementation just also affected by an issue which is mentioned in the Linux document "CodingStyle" as "one err bugs"? > Think about what happens if, after your patch is applied, someone moves > that assignment up or adds an extra step that can fail after it... Is such a software maintenance concern really enough to delay (or reject) my second update suggestion in this small patch series? Regards, Markus