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 B5DE4C433E3 for ; Mon, 29 Jun 2020 18:42:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9C1532064B for ; Mon, 29 Jun 2020 18:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593456138; bh=qOTFvpSRKTHKOTNpwfvKzGJ7ESKw+7XkW16PYewsAiw=; h=Subject:To:Cc:From:Date:List-ID:From; b=sB5wHUGxhzj1AXHJ9yUc9kxg6Lg2xsmZqf53DP/yN4rSSkWBNOzWZF0UWymYVu5m1 eUTRa/l8gPO7+41vmZLVysfhdWfERiIddy27iYIPdDG2k20SnOQ/mLRslNXgtt72Ls +SPbSrpdZEYitosCEJLTvU/AUM1GRXOO/gzhuWno= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726935AbgF2SmS (ORCPT ); Mon, 29 Jun 2020 14:42:18 -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 S1729013AbgF2Slw (ORCPT ); Mon, 29 Jun 2020 14:41:52 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id DFD65A2F; Mon, 29 Jun 2020 07:38:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 29 Jun 2020 07:38:49 -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=ss66Ca eDf7rOe54MWH41j7qYDuhgDCysGDKGZGu5Y8A=; b=ujFvQvbKZNedY7cVcXopf1 S1jO04QfVs+KQEzy85QmUgjUoCoXsBY3Ltg1TdZiCeDJSAx9+HdOV+QqodLTmXwX BoRPkqRUJpsbuiu/Ob9a2QOMoiPuWuOMzBnkNkhafMMLrdITs4MN2cs4XG6mbg+5 NpNLcsE0j0t2L8hL0gkWl6/zCK/jvO/5uhu1jph9VLKJCWY5qxsY7UF4sBa8B1o8 YYGKYO+aN0Ivh2PxGJdmWo5HvZjaHFHXO/ec4tQ9DjJmGMktFzVqqzxoW7OMhBM5 JmTBjc3/9pN6L5UK0hRReHajQDIM+gdKrw01IPfNTbP8l8Ahrixj56NFbRBFm5xQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudelkedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushht vghrufhiiigvpedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh 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 239423280068; Mon, 29 Jun 2020 07:38:48 -0400 (EDT) Subject: FAILED: patch "[PATCH] dm zoned: assign max_io_len correctly" failed to apply to 5.4-stable tree To: houtao1@huawei.com, damien.lemoal@wdc.com, snitzer@redhat.com Cc: From: Date: Mon, 29 Jun 2020 13:38:29 +0200 Message-ID: <15934307097203@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 5.4-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;