Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp56783yba; Wed, 15 May 2019 18:52:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx06c2NFKcfaveAK8AL7vQ6JZmkDzMfnwQFMgfivgQIHnWuuYzdH9cenoPfAKwULWt66SJx X-Received: by 2002:a63:61cf:: with SMTP id v198mr47728582pgb.29.1557971553939; Wed, 15 May 2019 18:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557971553; cv=none; d=google.com; s=arc-20160816; b=I3+KMsFzqS8Ep4Iq5acBvcGjopj7KQDNtYGv+dt77u7f5xOePjFU1Hi1dQ5aa9H2/c 3ymAayBOgKGOCRtoEIyU2BEfizXyDkwZ/4TT0GfkgYBQKhtwNW2bmcY169U623gAmMKu VK6FJdfOcq/shAtNmeeHQzt9oC8i00X4O9KwCrgLF0b7jqLzlhR3e4lVKfd428MWhNfh ZtaPzIVU1HvN/opXjXRcGxPYU8TIzMdroWtWjU3JMlmgrxox/1pKUvYUsrmXJJZ3lfDk dDtUKrZDKI1MBhHu7rxqsY1HMNpHWhV5NiRe6YuEsf+UjCdgbY3RGsiMvIL1XNRnVBd0 RKNg== 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=ImJX0tiITgi2zeWUkjyeNnlcEhTnJ18f85h6yaNeNP4=; b=VoX7qdrTDfkr7NSpbm8p6RuxCXpPJwjaVjdnyMwWSZ7aIWSWV82CITA99FQAxRVOEY DFQxh8bNhwLV19f0oQWV6dZ/5zW3RycOX5RfjexqKDJTH+yxGMtNPLWZBiQCz9PcVCGi nseOEwJoHIsJZ4zNm3/CEFzvak1KTX0kco437UIeAUknEwsumDX5V8PEFs8aYAq5LD11 x62OKZfHW1akc8weC0M0TAHP0vkjL1Rgvjnk51dD63p+84LUSnKaSnp6DBt1u2+vSqsb t3j7DR0vil0H7CliIpKu9GTFe7H2SVO5XAMttSXyK1pyQJxvCHVE/JSqP+Vf5XZYzyIu mUiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=fQHacpe2; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a128si3461157pgc.242.2019.05.15.18.52.18; Wed, 15 May 2019 18:52:33 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=fQHacpe2; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725977AbfEPBqk (ORCPT + 99 others); Wed, 15 May 2019 21:46:40 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:41415 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726324AbfEPA0y (ORCPT ); Wed, 15 May 2019 20:26:54 -0400 Received: by mail-oi1-f194.google.com with SMTP id y10so1191525oia.8 for ; Wed, 15 May 2019 17:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ImJX0tiITgi2zeWUkjyeNnlcEhTnJ18f85h6yaNeNP4=; b=fQHacpe2ymfI8sqJ+whv4r+9XvKZbkea86O3xoYBqguZpTOJRspjOhxU64Qq/4vsH5 oDLmngQ68PW81lPv5coyyGI58fcFPrrixmApE8YoVBMYYWjnerugGd8IPXk8j4syWpug Lriz/uX0F2DXGsHCNpWx1HztMF7wV0O+8B+3go5zyF9mxw4pxGvPJgCgdiV7nJCumxmU 1j5ClsNI05YpSBM/kp8JsA78iJijlHPOVKyo2zxBZynLYyCU8WQje8Zuq0izaBU864LD DLY2Xi3L22XXzhTdH69p5ubKJCm6s1XHfBYzcfxNV6FVhGiRxCIVVjZKO1w7D9hPXzoZ CKEg== 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=ImJX0tiITgi2zeWUkjyeNnlcEhTnJ18f85h6yaNeNP4=; b=jfFzlMJgImI6I6Om6h2yT/JULAQQIqfTgzk31lGKOea3b/Swq7lPtlKPmtbqpeNbDT oAntmcysZbWfjtN8hxH6/i3KklutAmuIK/gi6WxwZIsOMxYeME3U9OXJjYj6qs9M0zKz 1PFF1nOQr6S8MN1AcWulmsmCFZzcP3DDVC50uIYDJwII5iQmx8jT4htn4VD2wp6w0Yju wc/ITdI3yTOgzB4x0T7xhfZCuj1Q0z5Lsy7Bsa7lKcUnRHLWh5POWYiTU3pSlWrWqlVd d43OkgSQk0jZGXx1sz8yrlUaCwarGZrdWLHT0fXK0GjBU++TR519nLrQ4QACSiwcqoIb YQUA== X-Gm-Message-State: APjAAAUo+soKZGJN6JpWIKkfWGF4sg7TI9faBV9Y1jEjXLPbIgY0Wv91 Z39SRmFKx8VCo2uHxmPTJjzzDatxrNyIbmLX+E9C7Q== X-Received: by 2002:aca:ab07:: with SMTP id u7mr4326676oie.73.1557966413422; Wed, 15 May 2019 17:26:53 -0700 (PDT) MIME-Version: 1.0 References: <20190514150735.39625-1-cai@lca.pw> <7ba8164b60be4e41707559ed6623f9462c942735.camel@intel.com> In-Reply-To: <7ba8164b60be4e41707559ed6623f9462c942735.camel@intel.com> From: Dan Williams Date: Wed, 15 May 2019 17:26:42 -0700 Message-ID: Subject: Re: [RESEND PATCH] nvdimm: fix some compilation warnings To: "Verma, Vishal L" Cc: "cai@lca.pw" , "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , "Jiang, Dave" , "Busch, Keith" , "akpm@linux-foundation.org" , "Weiny, Ira" 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 On Wed, May 15, 2019 at 5:25 PM Verma, Vishal L wrote: > > On Wed, 2019-05-15 at 16:25 -0700, Dan Williams wrote: > > > > > diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c > > > index 4671776f5623..9f02a99cfac0 100644 > > > --- a/drivers/nvdimm/btt.c > > > +++ b/drivers/nvdimm/btt.c > > > @@ -1269,11 +1269,9 @@ static int btt_read_pg(struct btt *btt, struct bio_integrity_payload *bip, > > > > > > ret = btt_data_read(arena, page, off, postmap, cur_len); > > > if (ret) { > > > - int rc; > > > - > > > /* Media error - set the e_flag */ > > > - rc = btt_map_write(arena, premap, postmap, 0, 1, > > > - NVDIMM_IO_ATOMIC); > > > + btt_map_write(arena, premap, postmap, 0, 1, > > > + NVDIMM_IO_ATOMIC); > > > goto out_rtt; > > > > This doesn't look correct to me, shouldn't we at least be logging that > > the bad-block failed to be persistently tracked? > > Yes logging it sounds good to me. Qian, can you include this in your > respin or shall I send a fix for it separately (since we were always > ignoring the failure here regardless of this patch)? I think a separate fix for this makes more sense. Likely also needs to be a ratelimited message in case a storm of errors is encountered.