Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3245641imd; Mon, 29 Oct 2018 04:15:30 -0700 (PDT) X-Google-Smtp-Source: AJdET5cz9B0oV/Vvx5eQ6t7jmiV3bCQdP1lXZhTKsj7wxzOfA9we0HISDMtuuo+VAQZWv5Vs5m2G X-Received: by 2002:a63:da14:: with SMTP id c20mr12993647pgh.233.1540811730865; Mon, 29 Oct 2018 04:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540811730; cv=none; d=google.com; s=arc-20160816; b=vSR5Qhw/uOp8kKsxRpJtNWR/44xZIZPVNb6y0hikxux9IcsCgo2qVUKdwUlL+P0NKH KsMchGSvpTkvIBZWL1Pom3urOTYQJs9WL7HZRNQ6Fl3smByFJmNjmV0gcAURd7f6IRrj 15BSpoXG59mJQowmpzcuUJxA70qkM0uUGSWAMFI6TnyeQs3fVAB04IlKsWa2cbVygZf3 8Fbuj9G5igtZWMYUQ2BvrjygWWy2//zZYRD2p00uPU/P5qsKdeXnLv1m5+hgK/1Ubpp7 YspnzViA3aw97C23J1Iisql1iN8VaBgdpXq2lp9H3UXYurmgt9zHljeBoAbphKFWmhq7 nb+A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=u02piwy98jV4diXh5JEcUYhbrIMGWe01LooOY0f54iM=; b=yGnd4BEViM2fEIdkxNNodWFWJb325jx8kWUqRGMcOiJK5hDub4nOOcEQkmLJs0T3F+ yn/q+Cie7WkSu8kA/QMX2xddyTt7/pM9qLPO4PfAwf883jHnvEZOGjPYGIOiSVAflk0E 5eWRzeIxgRD23oszFFKMNtc8H1ZjegAiuzqT7AeInjL6NmWxBN08noYpN3flTv+tqO4C O3qrM7/rZf0QbM/ZNEXUMJ9SHQB3Jb9krNfN7uEQdW/uJ8luCJ+zbRAsdoHKl99F9ryZ OFmMRBezD9ixmJ3VqDpuh0SnG8ChEHcz9B+MVeFyiIEv8M46HZg1MSbgs8AisWlhDx6D MeSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=cSnqlj0m; 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 d4-v6si4434575pla.203.2018.10.29.04.15.14; Mon, 29 Oct 2018 04:15:30 -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=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=cSnqlj0m; 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 S1728145AbeJ2UCj (ORCPT + 99 others); Mon, 29 Oct 2018 16:02:39 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41624 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbeJ2UCj (ORCPT ); Mon, 29 Oct 2018 16:02:39 -0400 Received: by mail-lf1-f68.google.com with SMTP id c16so5676831lfj.8 for ; Mon, 29 Oct 2018 04:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=u02piwy98jV4diXh5JEcUYhbrIMGWe01LooOY0f54iM=; b=cSnqlj0mGD3YHReNi766WoWEm36nyqu28ZDG9kECc0sRkF3L2FhrfdpDYwBb4sdG78 f1d7nQTUvap2o0O/j5YQ8TusghNWJ14zVLtgSR4ofwrh2AsEIBKvtWFkFskJvoNlyTMa /JFWITQH+1iXk9QYS0lp6NeX2a2td81N7DX4tYVCutH5dC4gyO96f2aIid8g4PNe4d+l AQHWGDs5OI8EZKJ2jgKYcvhD4aRKJ9lm6n8nOXAf4iIo++J+pkLB1nIgnLMxb08CRSPy R19gkjwSNMOaCubxpSSEi9Hrv7c47vnYAiRLJ/c1Ou5EwEKsqzEfbSlh62XbOOf7hdpQ hVlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=u02piwy98jV4diXh5JEcUYhbrIMGWe01LooOY0f54iM=; b=JudFS1xg/BoZ7Yjqkq5xzgPS6ixppkRwZg0mJNRUcUJvyGmpyU8572V9pwh79Wafo6 tt2/5Bita1vwaHfXgJm1JFYYOZ5ti6SDYYtreCoEWFae5GRGLC9x66S22av+UyrrLM+o +pwa8xmUyc+rn6tT3b7pDgvLxYtrtei1v+p5CcqkOn4ZI6gr3ELHhdbWhDsJTE2FUVbA NPwPtqizap2zwkKN8p8FCRceGQFF21SRjzSrmG+1L1+uzUWyxl0DuujdpWTeFAHQt+di a82C5RL3CFsmdoYPts4hqieGnQo8pOGnzajIRrzESnEEDVjJaIwlRCQMFwh/nFpzbmqh 3xlQ== X-Gm-Message-State: AGRZ1gKP0t/Ti4jFACe5Z/Us2jOscmKHd+UK8NFmbT+Trn2SHhTZdCdq 4HY2KOPvOjV0Ehk8zjZzJBH+Kg== X-Received: by 2002:a19:54d7:: with SMTP id b84mr4605588lfl.131.1540811664944; Mon, 29 Oct 2018 04:14:24 -0700 (PDT) Received: from [192.168.0.36] (95-166-82-66-cable.dk.customer.tdc.net. [95.166.82.66]) by smtp.googlemail.com with ESMTPSA id d13-v6sm3028106ljc.25.2018.10.29.04.14.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 04:14:24 -0700 (PDT) Subject: Re: [PATCH] lightnvm: pblk: fix chunk close trace event check To: hans@owltronix.com Cc: linux-block@vger.kernel.org, javier@cnexlabs.com, linux-kernel@vger.kernel.org, hans.holmberg@cnexlabs.com References: <1540541544-7761-1-git-send-email-hans.holmberg@cnexlabs.com> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: <35331f13-983b-fb96-3885-f4e617c4adee@lightnvm.io> Date: Mon, 29 Oct 2018 12:14:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/29/2018 10:56 AM, Hans Holmberg wrote: > On Fri, Oct 26, 2018 at 8:49 PM Matias Bjørling 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 *pblk, struct nvm_rq *rqd) >>> if (caddr == 0) >>> trace_pblk_chunk_state(pblk_disk_name(pblk), >>> ppa, NVM_CHK_ST_OPEN); >>> - else if (caddr == chunk->cnlb) >>> + else if (caddr == (chunk->cnlb - 1)) >>> trace_pblk_chunk_state(pblk_disk_name(pblk), >>> ppa, NVM_CHK_ST_CLOSED); >>> } >>> >> >> 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 > Will do. Thanks.