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=-7.0 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 A6B95C433FC for ; Mon, 29 Jun 2020 18:42:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E28D2063A for ; Mon, 29 Jun 2020 18:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593456140; bh=paQC+wyLUOFxAvtyCKzuVTRCKYDRzvMtk/i4WnzANSE=; h=Subject:To:Cc:From:Date:List-ID:From; b=qGiaN5+HmTgNc8TjwG6e8CHQf1X1G29rZ+HBdVL0r8NnhweDbFvaAIJOS+oBP2t5d C4mp/poYq/f4CVMvVBBxcx8u/DDG+oKOZk6IpPY5km3gZW7E5aOJaCjO0uE2bhB91X THCGihJvb0bA1WYmIrGIA+t6BycrJV5G2J6kH3GY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727993AbgF2SmT (ORCPT ); Mon, 29 Jun 2020 14:42:19 -0400 Received: from wforward1-smtp.messagingengine.com ([64.147.123.30]:49405 "EHLO wforward1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729005AbgF2Slv (ORCPT ); Mon, 29 Jun 2020 14:41:51 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 726C89D3; Mon, 29 Jun 2020 07:38:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 29 Jun 2020 07:38:45 -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=fm3; bh=AuxoZT wCdciPys0K4HJL6bbLIWczI09nGywPEqLArrU=; b=NGNgoGc8waIYN81wFg6QvP yB3ISjUVhubdvtZePtLniliTOxY7DGfH6g9GAQ1JRa+wA2JavPbPUfzKLW+OUZmU t7gChjpqEXrbFCa3FKTmmejrimPcUHD8MDvTcVuKLAoKrS3u27fuM2X+WLB0MR7O KlN5UfJOrpVWhBiRF9Spq29vMXzu0TFReO3XPVbaUGwC3p+56H5yh8mF7tYWSNoL HoebNdwLVfmPjyE5XJWo8wmrvO1H50vO9BuYHxmbO4plE6nxveUbuFbF2hrCvCm/ LngrHq38nWnv1i5dnoj9SMRZThGCm35XxCtJrYwizcviQt7KCJauHaLJlzQLSA9Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudelkedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushht vghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh 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 A55BD3067C46; Mon, 29 Jun 2020 07:38:44 -0400 (EDT) Subject: FAILED: patch "[PATCH] dm zoned: assign max_io_len correctly" failed to apply to 4.19-stable tree To: houtao1@huawei.com, damien.lemoal@wdc.com, snitzer@redhat.com Cc: From: Date: Mon, 29 Jun 2020 13:38:28 +0200 Message-ID: <159343070813107@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 7b2377486767503d47265e4d487a63c651f6b55d Mon Sep 17 00:00:00 2001 From: Hou Tao Date: Mon, 15 Jun 2020 11:33:23 +0800 Subject: [PATCH] dm zoned: assign max_io_len correctly The unit of max_io_len is sector instead of byte (spotted through code review), so fix it. Fixes: 3b1a94c88b79 ("dm zoned: drive-managed zoned block device target") Cc: stable@vger.kernel.org Signed-off-by: Hou Tao Reviewed-by: Damien Le Moal Signed-off-by: Mike Snitzer diff --git a/drivers/md/dm-zoned-target.c b/drivers/md/dm-zoned-target.c index a907a9446c0b..cf915009c306 100644 --- a/drivers/md/dm-zoned-target.c +++ b/drivers/md/dm-zoned-target.c @@ -890,7 +890,7 @@ static int dmz_ctr(struct dm_target *ti, unsigned int argc, char **argv) } /* Set target (no write same support) */ - ti->max_io_len = dmz_zone_nr_sectors(dmz->metadata) << 9; + ti->max_io_len = dmz_zone_nr_sectors(dmz->metadata); ti->num_flush_bios = 1; ti->num_discard_bios = 1; ti->num_write_zeroes_bios = 1;