Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1578177ybt; Thu, 2 Jul 2020 08:42:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1Yl0wqqJIViP0uJGPZvQaqem8e7H0AgtweHnrq1XUULNFWYEMjEHGEPz8aIdpIHTkUf6c X-Received: by 2002:aa7:c885:: with SMTP id p5mr20868715eds.100.1593704573567; Thu, 02 Jul 2020 08:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593704573; cv=none; d=google.com; s=arc-20160816; b=tq3euhsvMID8iS2nijOnUfq5+To6OjMmWNsBV93h62QC+H+Ycoll4AzL9NfW3s5aj1 p/jx7NqkzWtNjCF7PnDZ00t/6LOAxaYZLmHEHcj0LqfnIHmIG3cO/EG96NV64YN0T5Ix O+czTc9TaKmJIqQZ0QvGAuLx8dB6AB7jZCbi4w21yfPjDs3YZKmlbRh2Guam8zuIUkEQ u+E7ouEYYIbVDznfesw7ER2fwZHcOKvC7U8L535+ZY8eMUz0Em3e87FXUkZuI/zPkmSR n2EVCudaZ4z7OOc2U9z5oztppYv6nVfPMur9blFrHHI5kPyg2JP7GvgbCgJloItoK4LZ vQeA== 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:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=K2+mo5xwtG55Pc3yxkOmmDHced+n9HmetT3RPTBR6qo=; b=AEJJF9/7WVoMw50jXgyjhktZQ/Vt3Ez1L5QsNsXQCHtQ8RKv1E4lciCddnqUuReYmO L4hHZAakrQr2Rw1cqTUsbyVsrk/bphBpAdivF7wwr9lPe1azNlVkKJjMbwoWN2PPNG1r qoZ2WxWzns2dT1nX0tgONJxUYMEpg3OxEJK8bit2eckCWGmwx9sPNjAgbW33IS/43JRi rGqcYUOyGISEjp+ueQiyv4cs3kkRdcodfha6yJO9LR3FoG1ueM865EtECp2kXbag9dxz Sp6XxguGoWh8Y4tcNn8MUAcQuFnTt5uE5iKiDFhBB2mN2u8dfVo9+u5mCI/8yjFCdr4b 8sQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lsdTsq2i; 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 x18si6177758ejd.495.2020.07.02.08.42.30; Thu, 02 Jul 2020 08:42:53 -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=lsdTsq2i; 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 S1729952AbgGBPmP (ORCPT + 99 others); Thu, 2 Jul 2020 11:42:15 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:50287 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728765AbgGBPmN (ORCPT ); Thu, 2 Jul 2020 11:42:13 -0400 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200702154210epoutp046aab60b9cee30ba49e10dd7d4dd14e64~d_dOIagbn0463504635epoutp043 for ; Thu, 2 Jul 2020 15:42:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200702154210epoutp046aab60b9cee30ba49e10dd7d4dd14e64~d_dOIagbn0463504635epoutp043 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1593704530; bh=K2+mo5xwtG55Pc3yxkOmmDHced+n9HmetT3RPTBR6qo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lsdTsq2iD8fvVh5VNbFGBMQ/P2EE73NS4bOpy1C3SagWi47RvzS8ClZ0fBdJgX1Tf +yYA6etUGBCXh0Pcl55VfHPrv2ncP7/q+r0E0ElYPfnqI3WvR6cUaDW3vk0tKMRvPU I49W85ySCeyD9d6ZmHR1i/AlZHLd9hdku2jtTcto= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20200702154209epcas5p32cccb69e788b0aebef47dc18e38c6a86~d_dNpPej60760807608epcas5p33; Thu, 2 Jul 2020 15:42:09 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id AE.F4.09703.1500EFE5; Fri, 3 Jul 2020 00:42:09 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20200702154208epcas5p39fe202f642a9d5c8dde9b911645c594c~d_dNAacFJ0760807608epcas5p32; Thu, 2 Jul 2020 15:42:08 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200702154208epsmtrp267a36aa897c5d7f936c14f2572b63871~d_dM-igcg1523715237epsmtrp2H; Thu, 2 Jul 2020 15:42:08 +0000 (GMT) X-AuditID: b6c32a4a-4cbff700000025e7-7c-5efe00515716 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id A2.3A.08382.0500EFE5; Fri, 3 Jul 2020 00:42:08 +0900 (KST) Received: from localhost.localdomain (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200702154206epsmtip10254bcf4288da0e1fe7b88f3d3197880~d_dLAKyfU2838528385epsmtip13; Thu, 2 Jul 2020 15:42:06 +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 , Selvakumar S , Nitesh Shetty , Javier Gonzalez Subject: [PATCH 1/2] block: fix error code for zone-append Date: Thu, 2 Jul 2020 21:08:49 +0530 Message-Id: <1593704330-11540-2-git-send-email-joshi.k@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593704330-11540-1-git-send-email-joshi.k@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCIsWRmVeSWpSXmKPExsWy7bCmhm4gw784gz8XpCx+T5/CarH6bj+b RWv7NyaLlauPMlk8vvOZ3eLo/7dsFpMOXWO02HtL2+LyrjlsFtt+z2e2uDJlEbPF6x8n2Rx4 PC6fLfXYtKqTzWP3zQY2j74tqxg9Pm+S82g/0M0UwBbFZZOSmpNZllqkb5fAlXHr8AOmgjls FSeW/GNvYOxn7WLk5JAQMJG439rD1sXIxSEksJtR4tiKd1DOJ0aJJVfmM0E43xglVrYfZuli 5ABrWfRPHSK+F6ho0VNWCOczo8TG20sZQYrYBDQlLkwuBVkhIqAmsXfRJ7CpzAJtTBKzVlxn B0kIC1hJnH23lwXEZhFQlTi65TkjiM0r4Cxx98gEZoj75CRunusEszkFXCS+zm1kARkkIfCV XWLq9e0sEEUuEr1rVjFB2MISr45vYYewpSQ+v9vLBmEXS/y6c5QZormDUeJ6w0yoZnuJi3v+ MoFczQx09fpd+iBhZgE+id7fT5ggPuaV6GgTgqhWlLg36Sk07MQlHs5YAmV7SHx6+AhslZDA dEaJg4s4JzDKzkIYuoCRcRWjZGpBcW56arFpgVFearlecWJucWleul5yfu4mRnDC0PLawfjw wQe9Q4xMHIyHGCU4mJVEeE8b/IoT4k1JrK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3s2bPkUvLWJtfzTO04v1wmMHty1bD8gPnGRLP3QvX /diV+8S+T+2S7QLpNe9rDxw7uiSHd8/i2PvntBjPzP5oWpb7Nq//6am4VQs0FwfWXQ3xXbiE Y6bTrsw0vr9TGUomGLVMP6r518f0fG0cy8W9mkq7L7zIVlc+Elhz0q01nWFtuodRMOPide7G lgv/9ey3Oiqi82YCg9I6Be94yTjtMlfhi5dj3N4feZ3h0nAt3PejcvxnA8GZnrqbP+zfZ3/5 1r2bX39LsCzOmn3ImvF85ffXcb5Miqten3APvfq148yhTdXyKopzreTS2ZkmKbEUZyQaajEX FScCADYgtYPFAgAA X-CMS-MailID: 20200702154208epcas5p39fe202f642a9d5c8dde9b911645c594c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200702154208epcas5p39fe202f642a9d5c8dde9b911645c594c References: <1593704330-11540-1-git-send-email-joshi.k@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org avoid returning success when it should report failure, preventing odd behavior in caller. Signed-off-by: Kanchan Joshi Signed-off-by: Selvakumar S Signed-off-by: Nitesh Shetty Signed-off-by: Javier Gonzalez --- block/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bio.c b/block/bio.c index a7366c0..0cecdbc 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1044,7 +1044,7 @@ static int __bio_iov_append_get_pages(struct bio *bio, struct iov_iter *iter) size_t offset; if (WARN_ON_ONCE(!max_append_sectors)) - return 0; + return -EINVAL; /* * Move page array up in the allocated memory for the bio vecs as far as -- 2.7.4