From mboxrd@z Thu Jan 1 00:00:00 1970 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=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 1E069C2BB55 for ; Wed, 15 Apr 2020 11:05:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EADF320737 for ; Wed, 15 Apr 2020 11:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586948752; bh=nlavAHWvPW6F+Y7nKRv/PooRwUT30/Qa2KGC398SunY=; h=Subject:To:Cc:From:Date:List-ID:From; b=jDEnn4wi7qNH5dGbuBZmttcQccDyROnsx23qoGTFjhW39SfcV3tv/CD7QzXNFJsrF AwJ4N3s9B14sCIyHTRT/jRa+7H0ouXb8R438Y6+8h6TWk737/7fVYcHTryrP9wxPVd yafTJuTYH2qSZRN+Esk3ftFhPZcxl2mCxG7ePyLs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393923AbgDOLDY (ORCPT ); Wed, 15 Apr 2020 07:03:24 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59379 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896707AbgDOLCw (ORCPT ); Wed, 15 Apr 2020 07:02:52 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B3AAB5C0153; Wed, 15 Apr 2020 07:02:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 15 Apr 2020 07:02:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KlcKlH zKEF93RpM5xbCpUmxgLy3Q43OxDXViyj3IQNU=; b=HNjSsuCBV+OfT8k8fxR9jw Rs+bGwram9oiUxcE7Oxq6bxK5n0KSxlABsnkWKytSLAmgPtNkQOcjHH8fujMFGhp GIrqpBupJJBpxy2ONPTb2zwXP0EPLt8objnhojdT1fDaPVvXoxtpxDTWQCRA3hA+ uj4w7Z0AvTMSoIXCCZ4llkAL2qIkeKr1iMOSJ5yHJCeh4en7Qg3SR/j+/LmplRCs bpAKwiNhhxNKyxZrXzLCVSSHBAbM3yq0Mx46rB0N+gY6kDDW0jUSt/Z1jBOg34hq mDAWqTgYiRz8Ge0LoB0YOceSzxMXtdOaqOQ4N+n6XkNqSBYaYAzFP0uXn6VkB1qQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeefgddvgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucfkphepkeefrdekiedrkeelrddutdejnecuvehluhhsthgvrhfuihiivgepvdenuc frrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 4F0643280064; Wed, 15 Apr 2020 07:02:51 -0400 (EDT) Subject: FAILED: patch "[PATCH] dm zoned: remove duplicate nr_rnd_zones increase in" failed to apply to 4.19-stable tree To: bob.liu@oracle.com, damien.lemoal@wdc.com, snitzer@redhat.com Cc: From: Date: Wed, 15 Apr 2020 13:02:40 +0200 Message-ID: <158694856060147@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.19-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From b8fdd090376a7a46d17db316638fe54b965c2fb0 Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Tue, 24 Mar 2020 21:22:45 +0800 Subject: [PATCH] dm zoned: remove duplicate nr_rnd_zones increase in dmz_init_zone() zmd->nr_rnd_zones was increased twice by mistake. The other place it is increased in dmz_init_zone() is the only one needed: 1131 zmd->nr_useable_zones++; 1132 if (dmz_is_rnd(zone)) { 1133 zmd->nr_rnd_zones++; ^^^ Fixes: 3b1a94c88b79 ("dm zoned: drive-managed zoned block device target") Cc: stable@vger.kernel.org Signed-off-by: Bob Liu Reviewed-by: Damien Le Moal Signed-off-by: Mike Snitzer diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c index 516c7b671d25..369de15c4e80 100644 --- a/drivers/md/dm-zoned-metadata.c +++ b/drivers/md/dm-zoned-metadata.c @@ -1109,7 +1109,6 @@ static int dmz_init_zone(struct blk_zone *blkz, unsigned int idx, void *data) switch (blkz->type) { case BLK_ZONE_TYPE_CONVENTIONAL: set_bit(DMZ_RND, &zone->flags); - zmd->nr_rnd_zones++; break; case BLK_ZONE_TYPE_SEQWRITE_REQ: case BLK_ZONE_TYPE_SEQWRITE_PREF: