Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4040551ybd; Tue, 25 Jun 2019 12:59:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqysAnzyfb1SeBugb4/4EdFemnkmUDzn1xYoLpZJLJ124kUdLTNK/j0QFyY6yaYkHwndmy65 X-Received: by 2002:a17:902:2a6b:: with SMTP id i98mr452276plb.75.1561492749039; Tue, 25 Jun 2019 12:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561492749; cv=none; d=google.com; s=arc-20160816; b=pJU7RJ2TTb/SbileiRg6HHluAPHY42Ps7MUYU5WGt4pLuZjXcxSJ/ufDvCiqk4XPVD 2wH3ZcYezRjkbhhLmg+qyfJt3pfoMYFssrqZfCyHStgEJJyUOliLvfjad/EcIoUmGi7n JBoUnlv564tgr+LgXly6MLJEP24I5WV0mlpMWahSCQyEJZcUkPBUduHC6T9+9JQ6fhZW Wv48/l53/yvJ8yPg7M1VfE1mEJUTlDo8s9gGpYfdIx38aEtHNlOUX1WMf0Aj0w3OrKYn F1UlRPvlRQUjRPDAK9wcKs3GsKpq+McMZ6/ZXAy8mlMScCtOwqWwJcHSMnpzw96hDATr 4zsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YoWQjtvkCeSVA1kdmqc11ysNxmHPU03GqQotMHxDp2U=; b=rqVh5sX7ShMONUZajY2SdbiPxCwBzQJr+q5RsMAVpgaUpXLCDWHXFUJRDgjFSPbRak q/QSIc8EcB9CVC+UkH5ihrfwC7uTRHIbL+o0l+dpLCOJr4iSKPevaJBQ79HJr1XvrHpW PaYCA2e+LrHETpI5MBbFJ68sf+OPH0W++WEEK5W8nsw/OzEtqNbLovLqR13xBJC7pfba NupuklrTMhsty222YLGDrOJ5q3qjQQgoMuuZT3hSNnV6Gu7VWboavp3ejdHuMF94hCve piGomJdWRJS8mLu3Nuy3IY9kZA8eBKpu30m+8a99yHZeo9jlGrN0g6wv2zh/n4SUkH9u ZkFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@omnibond-com.20150623.gappssmtp.com header.s=20150623 header.b=JYQNOBN9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si1029116plk.244.2019.06.25.12.58.43; Tue, 25 Jun 2019 12:59:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@omnibond-com.20150623.gappssmtp.com header.s=20150623 header.b=JYQNOBN9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733032AbfFYSzY (ORCPT + 99 others); Tue, 25 Jun 2019 14:55:24 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:45919 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730588AbfFYSzX (ORCPT ); Tue, 25 Jun 2019 14:55:23 -0400 Received: by mail-yw1-f65.google.com with SMTP id m16so7991333ywh.12 for ; Tue, 25 Jun 2019 11:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omnibond-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YoWQjtvkCeSVA1kdmqc11ysNxmHPU03GqQotMHxDp2U=; b=JYQNOBN93vshA1tG3sDASUASg0IgzYx8xGpNBbiFRHkUwh3oZdl9OlCx6jtrKyS1PA CrWyYZ0jKnkrirlUqW6deRq7Fi6sW4Rq7eUgopdxHjU0QgcSHpvnnweYhXypKLiZZ8vR cuf6eyKxBAOFtGHE/zKQbWG3mZn2Wr8Hi+aiv/FAG+RF4izFWbaYnBMO5ymEVTPlxI6o GvXxL0SVizG6nae8EeWBXNJsx5f76Ti+nvMB1QSd1ziILN0yR33OlN0W+m7qyFqpJ5Sg HCuiwnpaCzlQslCfLzZHyriG7QbIAsi4t7cY765LFqIKVeUOnfdvuu6dRL8/eLhFKxJD 9o4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YoWQjtvkCeSVA1kdmqc11ysNxmHPU03GqQotMHxDp2U=; b=fi3FvD437fMbui07DnsrFvEWxyYtiMVENgYgFaetwrjaYys2RDqghU8uzKOkikzEU0 UFWtJNexyWM8iaM+ovCrsM4lHpMA+9DpOckPTm4mKBfNOTZmdZ6sWt6b/CKH4MCc5DBv +nTMuSi6rEBB7BaybAUFnIZdJyRBWInTo7Uku/nG0cfhcGQrpzhip/9MYf2kc5LlyfuP mZ72ERUqC4pYlg1ncavNzCkS6h4a1OUuSOWYWrXTiVNnG78wlCmNNcbZwe6AvaqdqLo3 LUeRFo/aaVIE9YUMFDsOqTzciLnr4Tv+SiP5xd4KsaaVUF6CzG3geRO77T56T/wFf7tO AXCg== X-Gm-Message-State: APjAAAVLXzJ+ALmH/sF72Aod8jqHSf8SD4txiXCr/QZ4HziX6BKzuEwo KZPjMeqv510Qs/O0YLBVbOhX0Ea+DKRIFgEqdCQ/mA== X-Received: by 2002:a81:5cd6:: with SMTP id q205mr121944ywb.13.1561488922875; Tue, 25 Jun 2019 11:55:22 -0700 (PDT) MIME-Version: 1.0 References: <20190511132700.4862-1-colin.king@canonical.com> <20190521150311.GL31203@kadam> In-Reply-To: <20190521150311.GL31203@kadam> From: Mike Marshall Date: Tue, 25 Jun 2019 14:55:11 -0400 Message-ID: Subject: Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index To: Dan Carpenter , Mike Marshall , linux-fsdevel Cc: Colin King , Martin Brandenburg , devel@lists.orangefs.org, kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> The only explanation I can think of is that you guys are discussing >> different code. :P My response contained several conflations :-) ... The code in file.c that Colin has flagged does indeed have buffer_index being initialized needlessly, and the assignment noted by Dan is also needless. There's even a second needless assignment done in another place in the same function. While the code around them has changed over time, these now needless manipulations of buffer_index are not new. I'll get rid of them. >> You often send these patches before they hit linux-next so I had skipped >> reviewing this one when you sent it. I know Linus is likely to refuse pull requests for stuff that has not been through linux-next, so I make sure stuff has been there at least a few days before asking for it to be pulled. "A few days" is long enough for robots to see it, perhaps not long enough for humans. I especially appreciate the human review. One of the good things about Orangefs is that it is easy to install and configure, especially for testing. Documentation/filesystems/orangefs.txt has instructions for dnf installing orangefs on Fedora, and also how to download a source tarball and install from that. -Mike On Tue, May 21, 2019 at 11:04 AM Dan Carpenter wrote: > > On Thu, May 16, 2019 at 12:06:31PM -0400, Mike Marshall wrote: > > Hi Colin... > > > > Thanks for the patch. Before I initialized buffer_index, Dan Williams sent > > in a warning that a particular error path could try to use ibuffer_index > > uninitialized. I could induce the problem he described with one > > of the xfstests resulting in a crashed kernel. I will try to refactor > > the code to fix the problem some other way than initializing > > buffer_index in the declaration. > > > > The only explanation I can think of is that you guys are discussing > different code. :P > > regards, > dan carpenter >