Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752893AbbLNMEe (ORCPT ); Mon, 14 Dec 2015 07:04:34 -0500 Received: from mout.web.de ([212.227.15.14]:52146 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752740AbbLNMEd (ORCPT ); Mon, 14 Dec 2015 07:04:33 -0500 Subject: Re: [PATCH 5/7] staging: lustre: Less checks in mgc_process_recover_log() after error detection To: Dan Carpenter References: <566ABCD9.1060404@users.sourceforge.net> <566D7733.1030102@users.sourceforge.net> <566D7952.7090401@users.sourceforge.net> <20151214110003.GV5284@mwanda> Cc: Andreas Dilger , Greg Kroah-Hartman , Oleg Drokin , lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, Julia Lawall , kernel-janitors@vger.kernel.org, LKML From: SF Markus Elfring X-Enigmail-Draft-Status: N1110 Message-ID: <566EB03E.2000007@users.sourceforge.net> Date: Mon, 14 Dec 2015 13:04:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151214110003.GV5284@mwanda> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:9FxGSNG1TzJJ4LXGsAPlSIxCFV439pvj4Y6ZnOR1UBGJktdYl53 FtcP7fo2wUong72OifdfuMUM69w30H31gseHei4WKDbHKJ+TV2W3rJGbkr+v3hxIqi+/DFQ XwYrHzsbimhmATHwnC61cZ8cHf82kR29e9ADZvommo46Y0CX40tWtlOlcghz7DDyq132UWJ r5lZoAQVJ3TaomNiyo2Mg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Q2XiY/NEgss=:sdXNJN9XOKEVFKolqW6dFn PK82WrkVvFsPDXXzSf/G1Qeo5nQgv2dH3oNCF2ZZ0Ssv/Ck+imdhgveFF788cIPbf8whpyEt3 MKf/2bYcvUTvON8iV5/ub6TvcvGIbtog1vBzzMeBbgcOzW5oQMhv2vHBJcRx7xl3NpUJByBK2 9CxOI3nLB64O7YaiqQuUKWyYQaCFP9fFJHgI/HvOA8WPLRaMmmqszmRDJ0/e9uuNCD5YePGDu LDclWkvrsoC72iAvYYm62NXm/WRd2JOyk/wseWSVCJbV58wOrHqAxZ4GgsDEzSg9S5RvjHME+ 5w+AGQdKjOq2tcGrJhSp6vBqe9zUolVnRxKJ98Znv0iTSUVOhOC/eWPGFKnb67PzgpC+kwOFQ b/UQ+48porlGdQO2FP4CYhmGJSIl1sQEQGA8pHIgRO+kqE7oVdqo5PQniLKpBH+gNuHShm6uo y9c5tq3COUZIojoQvWGBuWQnRZ/T52GhgfByLb3qtr2t7FqzQhbSG6O4R7tDBt3cwIgNOhsQy +Yeofpxzx9V7AXn8A0zS79bVeJ8yySAzViQf8R27W0I6CH6riGJAbORWbg2gnBBpI5GoEjqJv iXtUAae10sk6MkpVRqMMMcau9qNu9xxfzAnYEgFU3Wl9ys2QTfHZkPlhiMDRwqDDdZ7ralbHj dX/L3PdReXxG0/bSJHqYeSE5R7xKDKOcnZniU1wj8IvozthmXqYdZp3o8JjRoIkZLY0Sa/44I KOmzVxEzh8mJIoP5aQQ3z2iHqsoZ1sOmMEcNjJL0/h/UMtx3C8r+55n5iOsL+/MC9Ec2vGcp0 7d0agB0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1020 Lines: 33 >> A few checks would be performed by the mgc_process_recover_log() function >> even if it is known already that the passed variable "pages" contained >> a null pointer. >> >> * Let us return directly if a call of the kcalloc() function failed. >> >> * Move assignments for the variables "eof" and "req" behind >> this memory allocation. > > Why? The positions of their initialisation depends on the selected exception handling implementation, doesn't it? Can you accept the proposed changes around the affected memory allocations? > Then in the next patch it moves again. This detail is a matter of patch granularity. > It's like cup shuffle to read these patches sometimes. Do you prefer to stash any changes together for a bigger update step? Regards, Markus -- 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/