Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1578936ybt; Thu, 2 Jul 2020 08:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8lFxGKErWQPmjBHipyHbkWEw54KPF8Ku/OOiRZQZrU743GTnPdexEkAI8KOQjvfK2KzRU X-Received: by 2002:a17:906:c04d:: with SMTP id bm13mr19778437ejb.321.1593704636536; Thu, 02 Jul 2020 08:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593704636; cv=none; d=google.com; s=arc-20160816; b=m+ncVv/5xl4OkrGKwwCpV+4ObPpyRr3B7r8W5YyKxC1i8pjvqlgMPTXDqtPmFTKGak V8LN3lngQOkmoTFKzF4/4fkdZ2zMroH2BE4apRj51eA31XRnr8DXXF6cMhkZKMTEQeJK zqpn+9dw1jBBp320EjUOf7tzuHJ/7wnyTNupbwCp/o+fCF3c5jZ4RCYXuWo9krFgHm8h OalHPzivzU7hZu/nSg3c2H2oW+TfaTt4ekOkAAsZNu1c9juVHdulxJD0UO7xKsyEYIWJ tOuF7w/ohiIlK0aW9KZ3CE133lD39UAQFZQNhKSGnUR/22idt/BRfJSI54NqakEdRlLD m6kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=hysM3c4xp8mz2RoHJXjNUcMrUuaAnVpURb0TToaAgcg=; b=QvQA65NZkUP8tobtqFPj1tbKEaiTN2KE6sbhbRNFxkoTPx86lnpmUXdNXECbl/egUg 18n4xU+RfVkqyGk/YtpS27FTLK2sQbV9azuk/JNssHiJVF/+uvDaq7qfUNUfixgXB61w +03susVfKbrAFpcBYy41FYZU6XCOh2L/9EtUb6cXiwoajV3Wi+UmRcQh3WyDwp503Lra pCauciYbEXTo0gsJXlRuUTRwaSZj85Btl5DKqRHyn9EuNO93jtVP36SbHNaFfm8VZZXB 7cyWumSxYEAjNuFCki7qbHG9BvmDz+29GyT3NNHZYJRYDJMMKs92WQ4B5NRd0ipurV4E hsBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Grqmda4n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si6114033ejk.27.2020.07.02.08.43.33; Thu, 02 Jul 2020 08:43:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Grqmda4n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728701AbgGBPmJ (ORCPT + 99 others); Thu, 2 Jul 2020 11:42:09 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:57154 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728493AbgGBPmJ (ORCPT ); Thu, 2 Jul 2020 11:42:09 -0400 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200702154206epoutp019cf1aae094f86712200e15e07789fbcd~d_dLO4E8B2139521395epoutp01e for ; Thu, 2 Jul 2020 15:42:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200702154206epoutp019cf1aae094f86712200e15e07789fbcd~d_dLO4E8B2139521395epoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1593704527; bh=hysM3c4xp8mz2RoHJXjNUcMrUuaAnVpURb0TToaAgcg=; h=From:To:Cc:Subject:Date:References:From; b=Grqmda4ny2ziWNadjOT5NdZNFu/iWBZdxb/kyeiRgmO2N7PqcuijfLmNpYJrQ8OIV w8TKF+GbV38wa438EELhlTaPkMHIjbjn/lKQcyCJhDF2FD6F4NaORwb1RcTXsr8MSj LNptZfSWSADv3nKRTK9G9yrGjBIaV8sqLG0FySbM= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20200702154206epcas5p16cf30866565a800b0b47ddddd035ac44~d_dKdLsG52199921999epcas5p1u; Thu, 2 Jul 2020 15:42:06 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id AA.93.09475.D400EFE5; Fri, 3 Jul 2020 00:42:06 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20200702154204epcas5p15106774a3d556b77050710722da89922~d_dJR0RxH0362503625epcas5p12; Thu, 2 Jul 2020 15:42:04 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200702154204epsmtrp28b3a1b4bd241cf66c1da132bc730a710~d_dJQ7Fn91523715237epsmtrp2G; Thu, 2 Jul 2020 15:42:04 +0000 (GMT) X-AuditID: b6c32a4b-39fff70000002503-0f-5efe004da22b Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 02.3A.08382.C400EFE5; Fri, 3 Jul 2020 00:42:04 +0900 (KST) Received: from localhost.localdomain (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200702154203epsmtip14afc6ea65b1b130ba47eeba550dbd81a~d_dHyOAFO2839128391epsmtip1o; Thu, 2 Jul 2020 15:42:03 +0000 (GMT) From: Kanchan Joshi To: axboe@kernel.dk, kbusch@kernel.org Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, hch@lst.de, Damien.LeMoal@wdc.com, Kanchan Joshi Subject: [PATCH 0/2] fix/extend zone-append in block-layer Date: Thu, 2 Jul 2020 21:08:48 +0530 Message-Id: <1593704330-11540-1-git-send-email-joshi.k@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsWy7bCmuq4fw784g6NtjBa/p09htVh9t5/N orX9G5PFytVHmSyO/n/LZjHp0DVGi723tC0u75rDZnFlyiJmB06Py2dLPTat6mTz2H2zgc2j b8sqRo/Pm+Q82g90MwWwRXHZpKTmZJalFunbJXBlvL1kWXCWpWLC6uesDYyPmLsYOTkkBEwk 9u3qAbOFBHYzSjz+w9/FyAVkf2KUePh1OVTiG6NE35EqmIbLn6azQhTtZZTYtLuPCcL5zCix +vYnoA4ODjYBTYkLk0tBGkQE1CT2LvrEBlLDLNDOKPHtcBcbSEJYwEriT287mM0ioCqx7fke FhCbV8BZYtXyRywQ2+Qkbp7rZAZplhA4xC6xbNU5VoiEi8ThR/1QPwhLvDq+hR3ClpL4/G4v G4RdLPHrzlGo5g5GiesNM6Gm2ktc3POXCeRSZqBL1+/SBwkzC/BJ9P5+AhaWEOCV6GgTgqhW lLg36SnUWnGJhzOWQNkeEm9ufmcFKRcSiJVYdcZ5AqPMLISZCxgZVzFKphYU56anFpsWGOel lusVJ+YWl+al6yXn525iBEe9lvcOxkcPPugdYmTiYDzEKMHBrCTCe9rgV5wQb0piZVVqUX58 UWlOavEhRmkOFiVxXqUfZ+KEBNITS1KzU1MLUotgskwcnFINTObtDiqbf93SE2G1mrnYV8bJ Q/RyZP+uLTlM/zJTTxcXCIgsWrpvVcU0s90TVKs9+vdH5bQfPywYIflNcxpXQWvGRzdb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3bPPdk0NS0N2tuRihalX19Eyly+bndLV0WUbML 1QwVT1VKK4L+xHVu3nR3R9jclcmilXP8Z2SU2habONu124m3GHirr1y70WuRnsQ143uhV0Vt b6+RSggJXB2nxFKckWioxVxUnAgA3oMPsZ4CAAA= X-CMS-MailID: 20200702154204epcas5p15106774a3d556b77050710722da89922 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200702154204epcas5p15106774a3d556b77050710722da89922 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First patch is about returning failure (rather than success) when max_append_sectors is 0. This prevents bio_iov_iter_get_pages() from getting into an endless loop. Second patch enables issuing zone-append with iov_iter of bvec type. It adds a helper which is similar to __bio_iov_bvec_add_pages() but takes zone-append limits into account. Kanchan Joshi (2): block: fix error code for zone-append block: enable zone-append for iov_iter of bvec type block/bio.c | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) -- 2.7.4