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 25E44C433E4 for ; Mon, 29 Jun 2020 18:42:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0AE4A2063A for ; Mon, 29 Jun 2020 18:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593456127; bh=Zl5NY/zHfruGxzW5TAbfWs4QKksjBZ0tV/qdA4yet/I=; h=Subject:To:Cc:From:Date:List-ID:From; b=ElDBksbFBdO5F/W0s58MkT4xgniqP46L/IhpwvGMim29chD6NXXksNusHyZh2TTrs ceY6GNVW3n4dZ6s5KCXDGxEcp/cFw+ElXRok7j+EMRsUfT3zHVPGEF18PJF9js4j9d x67UO34dpgEXefLoFW0J9snPxIjvr2CsMgcX7cbs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728063AbgF2SmG (ORCPT ); Mon, 29 Jun 2020 14:42:06 -0400 Received: from wforward1-smtp.messagingengine.com ([64.147.123.30]:50185 "EHLO wforward1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728069AbgF2Sl5 (ORCPT ); Mon, 29 Jun 2020 14:41:57 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id B90AA8D4; Mon, 29 Jun 2020 07:38:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 29 Jun 2020 07:38:38 -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=yUM8WL sGCDw4vz4mnUHG8zQgFjD7hQ607GkHzC2hk+A=; b=u/DsJ9ljWmxqH96ysdxpA5 rBjWbQwfdk8WPMyDU9D5aMEcWLwJWqjy7phFLTZYHF9VYqbTUYjE85sgx9jh5WVi iLfUtcTfh0dlP+jw9qH3Cydzwo1iwt7CaZG1b4JJ3vVm7E10y+sV+r3hGA/KQcjz 7ZfuwrIJmZF4XE1NxQKxlrs/qziTUHmBHde+KbNcJhlMQpaUH9VMZdgZp0YcsJf0 gFUeOwj/W9SlovYSqfpz4+CAhz/Dg8kZUeO7VW41LpdhK8KQsaW8MHpbsvI94b7N D45P1/WJ1rMV7Q0i54K09TftEtq/Wif4y4Un2LyA81aIVN12YKSYG/TT6a2HNsgw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudelkedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh 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 8D55F3067C46; Mon, 29 Jun 2020 07:38:36 -0400 (EDT) Subject: FAILED: patch "[PATCH] dm zoned: assign max_io_len correctly" failed to apply to 4.14-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: <15934307083243@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.14-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;