Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4587BC55178 for ; Wed, 4 Nov 2020 09:09:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D4FAF2242C for ; Wed, 4 Nov 2020 09:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604480972; bh=ti9O4jTUJr1FbkWMdx03yRAy00esRfy8dpB5/fNqb3w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=nJ5A1MUbPpuCv0FyWZOoJYWUUYLbRm5IwrBBMR7IPz0dAReiTIG4daYijfqin5ELO bEDCBWtoHNj6A6LjVjjBjkT1nrhd1dNuJsi7tuPKjkiKgIjB33Lk0VVdJHSzQkOw/Z s7OB4/XT6w70kPZLNdk+Q87htaP9PKl7HVBkV5FY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728950AbgKDJJa (ORCPT ); Wed, 4 Nov 2020 04:09:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:58608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbgKDJJZ (ORCPT ); Wed, 4 Nov 2020 04:09:25 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 65D082242A; Wed, 4 Nov 2020 09:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604480965; bh=ti9O4jTUJr1FbkWMdx03yRAy00esRfy8dpB5/fNqb3w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RdnmLL4UglxdWf3w77zJ4rsOy2jFANXLWfKyjVekDhTgK0s/vJkWSdexXetbAFn3U niu6wfTvR5iQQ1CxJXFGcAK3kzfkOc3V++Yi0BBjdYcqpQ45NAI11Loss8uqZrUsJp 5X2efi9qP7EKBnIslDGowp5kVc9QWVhdwV04nlLY= Date: Wed, 4 Nov 2020 10:10:15 +0100 From: Greg Kroah-Hartman To: Damien Le Moal Cc: stable@vger.kernel.org, Jens Axboe Subject: Re: [PATCH] null_blk: Fix zone reset all tracing Message-ID: <20201104091015.GD1588160@kroah.com> References: <16044134474538@kroah.com> <20201104052914.156163-1-damien.lemoal@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104052914.156163-1-damien.lemoal@wdc.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Nov 04, 2020 at 02:29:14PM +0900, Damien Le Moal wrote: > commit f9c9104288da543cd64f186f9e2fba389f415630 upstream. > > In the cae of the REQ_OP_ZONE_RESET_ALL operation, the command sector is > ignored and the operation is applied to all sequential zones. For these > commands, tracing the effect of the command using the command sector to > determine the target zone is thus incorrect. > > Fix null_zone_mgmt() zone condition tracing in the case of > REQ_OP_ZONE_RESET_ALL to apply tracing to all sequential zones that are > not already empty. > > Fixes: 766c3297d7e1 ("null_blk: add trace in null_blk_zoned.c") > Signed-off-by: Damien Le Moal > Cc: stable@vger.kernel.org > Signed-off-by: Jens Axboe > --- > drivers/block/null_blk_zoned.c | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-) Now queued up, thanks. greg k-h