Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3172370imd; Mon, 29 Oct 2018 02:58:37 -0700 (PDT) X-Google-Smtp-Source: AJdET5fTowc0diYSqeEtG9N7nR9TcJX2Lm6GQb4XL611+8BdeuLojHXQoJtf2lzOfZ8NGmdmLikw X-Received: by 2002:a65:45c9:: with SMTP id m9-v6mr12896528pgr.212.1540807117505; Mon, 29 Oct 2018 02:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540807117; cv=none; d=google.com; s=arc-20160816; b=bHyCFKOwR+s+ZDYq6oK+L7uiy+s5DsGEqr4yUqVWshsK98AhjwYRjqVBHdAIw8qT91 TSwJKaYos2IZWod87mHPr2aa5NSsbJ01rgjSXuz3P9lIgl7DiMhFLnmZKm1ai+Rcpwl1 S34XvtMfcJfQc2zhlPdkyQ5Q+1GzRvWJS+Tg32RjGvLIDhcDH9RzJC+EbUypsBGXRPUa 9KlbrwB5nxLFaj5qhOPQSN0kW2j4sD2z08fJ9LhGCJZyPTiWN75a+GWzNcH3uPmyJCTp 1fV6AuYh5Q8xBSSq4flHXxaeamJ7yPFlfEBfhEnp23UyDsq5V3e7mHRhGqHiXzg95FHC fdfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=50449q8iGcINCtJ7cimQ1yuKOqLpxMohEE6QzK4fbBE=; b=WV6O0CopfnzyX5n/E3cVi6LwFPyPmBvKrKOR9QRcWUJfuopkFmVYJB5fQ4PMOWtYVX uSK9kujJncoIxCRse0pQSoScgWLzFrLQ7l67sGWsO0qF7xolUFWLQJop9tKcr2aTHbad uxkKaMZzgIHgmLKaW80vKiYedIB1Wl6jf6Z+c0pbRx/8TtnhXpiuUJoFJWvryF5+d4/u LBU9IjwHQ+tOU1IQgNfyzMLaLVKXrpB8xKpBaskDspVYrOLtTHPhf5uKoRVSB75igoot 1l8a81fvcq4BxaLaweRgse1EpeHFIc2qAB8taPhlyogMC5+IjbUsOZVPeLCORClPG5If 9b6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=TiWRXad6; 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 o11-v6si19226576pls.76.2018.10.29.02.58.22; Mon, 29 Oct 2018 02:58:37 -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=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=TiWRXad6; 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 S1729634AbeJ2Sob (ORCPT + 99 others); Mon, 29 Oct 2018 14:44:31 -0400 Received: from mail-vk1-f196.google.com ([209.85.221.196]:32969 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729554AbeJ2Sob (ORCPT ); Mon, 29 Oct 2018 14:44:31 -0400 Received: by mail-vk1-f196.google.com with SMTP id l186so1887280vke.0 for ; Mon, 29 Oct 2018 02:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=50449q8iGcINCtJ7cimQ1yuKOqLpxMohEE6QzK4fbBE=; b=TiWRXad6qHt9PX0pHIni01Npesnu6yOPz0ZxCOeKBHDpfP/pLu9TRfK1Z+Kz03LQsQ Q5LefLbUqsmO+4WCjjhkSIW+7AK0ZvjNx1za2u6ISsHpxC4ZCQgLA6lXhITVMMERPiIp 5SJeqh8nn9QW2fSYrIZdvbo3ze27q8lgWFG4Vt7ZcK/Kx+i9w3vgoM1DGWxf5lwDax5K ZG5bKtPLuKvQ5d27f4GrhIzfKV1lpfGZE0md4tUzUI9QiOIUvGSXVkr3Pkr98TLgbdrN g5jHWVQ8qg0YxfdTnp0kHD8vT8K5BF9+iiiUrdDbkA9yEhXwiMmHomRCkq+gyV26Ey1o k8Eg== 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:content-transfer-encoding; bh=50449q8iGcINCtJ7cimQ1yuKOqLpxMohEE6QzK4fbBE=; b=Bu7YyiLuteY3MtCVeeAmYZMGWuJHMRfrDFY1iojJKrHyRyuylIxJEZK3AJJsBAxMQr a0H1IJmT7R4kOQwDXz+eo0n5EXr/MxljIG9EA7U5jbmjND0R8gwyAQQ4j1gKT42DV4cz aKNihRefIRMlCirpgfguZgX+8HAWKbnedCWCIy77wC7KLu3CsrW86JqDACeTOU6tRa2U MrDnY/zm+oJztodQ2XUa0OnLciNIvH3TWNIq2UqrRbZqxcRaKB6FnWFYGZ6qEEoIZ1XZ NF87IbKnlT81bHS/g9Yecg8teyFnBRFAyiiC1vlL9KL8CuZoBlCSwmSDRay89CqKj+/i czoA== X-Gm-Message-State: AGRZ1gLcb+iHy3aWzXM7smHIMoDba5GAouLl7BtriLg3qo3e9kZHGhjH 8+oG4As2jeqj73mKl3dki2ufTN61uxQxf7juFcMBX1AyvOC72w== X-Received: by 2002:a1f:1d4b:: with SMTP id d72-v6mr5685900vkd.34.1540806993713; Mon, 29 Oct 2018 02:56:33 -0700 (PDT) MIME-Version: 1.0 References: <1540541544-7761-1-git-send-email-hans.holmberg@cnexlabs.com> In-Reply-To: From: Hans Holmberg Date: Mon, 29 Oct 2018 10:56:22 +0100 Message-ID: Subject: Re: [PATCH] lightnvm: pblk: fix chunk close trace event check To: Matias Bjorling Cc: linux-block@vger.kernel.org, Javier Gonzalez , Linux Kernel Mailing List , Hans Holmberg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 26, 2018 at 8:49 PM Matias Bj=C3=B8rling wrote= : > > On 10/26/2018 10:12 AM, Hans Holmberg wrote: > > The check for chunk closes suffers from an off-by-one issue, leading > > to chunk close events not being traced. Fix this. > > > > Fixes: 4c44abf43d00 ("lightnvm: pblk: add trace events for chunk states= ") > > > > Signed-off-by: Hans Holmberg > > --- > > > > drivers/lightnvm/pblk-core.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.= c > > index 6944aac43b01..6581c35f51ee 100644 > > --- a/drivers/lightnvm/pblk-core.c > > +++ b/drivers/lightnvm/pblk-core.c > > @@ -531,7 +531,7 @@ void pblk_check_chunk_state_update(struct pblk *pbl= k, struct nvm_rq *rqd) > > if (caddr =3D=3D 0) > > trace_pblk_chunk_state(pblk_disk_name(pblk), > > ppa, NVM_CHK_ST_O= PEN); > > - else if (caddr =3D=3D chunk->cnlb) > > + else if (caddr =3D=3D (chunk->cnlb - 1)) > > trace_pblk_chunk_state(pblk_disk_name(pblk), > > ppa, NVM_CHK_ST_C= LOSED); > > } > > > > Thanks Hans, Applied for 4.21/5.1. Note that you're sending from your > owntronix email account. Checkpatch complains that sender and author > doesn't match. Ah, I must have messed up my git configuration. Would you mind updating the patch author to "Hans Holmberg " in for-4.21/core? Thanks, Hans