Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp108978ybd; Fri, 21 Jun 2019 23:05:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzXaxiEl63lUmArd02pP31zjQL8i6HRN93vfJQpPUaMPN4oWecJwsLC7nRv3S0aol36+lI X-Received: by 2002:a63:4f5b:: with SMTP id p27mr21777996pgl.273.1561183514176; Fri, 21 Jun 2019 23:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561183514; cv=none; d=google.com; s=arc-20160816; b=m8hjAyxRsdTW+uAFF1TIv+1fAFa+GZuAA395nSvfD6bUdifhxzi7ORt67ZXh81wOl2 sn+yMv/ruGZKfSd9NLbdOM3T7xixPAgSuVCS9O9KtjlhJr4A+E7mCyCyxr7+wVCJ2kc1 ObB94LzrLjiP8XPMVHmhiJvQ9at3vgPgLoJHQWBBrUuiob5SYHqSzk5htppdlynByaZS 7q3k+HL4ZIrYguvBUsrOmdt96jjCO8MyQ3ExpnCsBMU1/HJeaWgzXXHd2YC5L7D7gEYU /RuaReZRnycYF6otOAUiiTfsTsvS+QLpGbaY5J8m5i08vHTFzzwiwf4M8woYJSTVG/j1 pLCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yg/1WkKqkNqxYmfahwU10rIwyumik9JOh8CghNFdi84=; b=h+bG8hSVPaBNg1ZyaeNhb8jT9NGGumreIM7e+/IrutiqtPlXbsra+G7bbXB6uSiTtz NNzGBJGIXfBjIHN2I3IwcxEHmSsMMq1IRYtLyas8NGk663ULu22vkKa/G5+ePQIY4YLG t7CDNGD/u/y9F37SQ1IIxqDcjHXg2GEie1Vw4I6OezTrIWPuWjxSWEMkJCGX1XEVS0kZ VyJI3BzuyoGoKDL6LB9agjuHbDXNX9yeebtmuYsFKLDW3H8e36bP+2PB7wjmSIMTj0PH UFAGKq0Eibl6HESGREdQhmAEXYg5DcI/ArqqFRqWSr0OOgoSLWaIYKNbNGR50W2qy0Jv r5MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nRp0PQRy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si4298663pgl.562.2019.06.21.23.04.58; Fri, 21 Jun 2019 23:05:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nRp0PQRy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726129AbfFVGEt (ORCPT + 99 others); Sat, 22 Jun 2019 02:04:49 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33518 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbfFVGEs (ORCPT ); Sat, 22 Jun 2019 02:04:48 -0400 Received: by mail-pg1-f196.google.com with SMTP id m4so3758892pgk.0; Fri, 21 Jun 2019 23:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=yg/1WkKqkNqxYmfahwU10rIwyumik9JOh8CghNFdi84=; b=nRp0PQRyhWjbC0KEWHP9ZlUeueQiT/aMpAdU278WcErKsKci2cmQ33E+yrQ2by+tHI eE9fbpXci/gaqu9Dsq7+cF7RnqeWWVhMX4uMNhMYY5AweDkxpgNAfXMJF6Ag9Bz6akXu OcoYOfafP/zdBotqhZQq35Q62vTQHJ7pv6xsDhC387Q73ETAb383VPMITI7f+IIu+u3P lAnEKUgq0Tvz7Hr16ohwQOG79Um6rN46EK8GY2b7eWy0gcVP//MhfUFKoIKPTrE3hpZG RNft5hpW4DTdirxzcq9BcgJsQxpREgMaFknx3H08PSgYnPfWc1R9cS3oAO8U9iN/sFBW iIKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=yg/1WkKqkNqxYmfahwU10rIwyumik9JOh8CghNFdi84=; b=iIkyHSZaWVbeosXOLfMGjdrSWo+4iWVlbttK2OuI7nQuMpKbapbcIdSiegeBdzCQvr 2tyMUM9DbqvbgGyKWLI8XSV9k8oOq0Tlgmu6OTl/xka7L5o7z8ieX9NrtfShK+DiR+mR uiZ+JztpZxHS+lUVjIp1E2SOkR0b6vrIxx63krdpxpDGzxNA/DMQZV0OKAMdqwtqERkv Ygbl4rAk8uFHPboG837udzNx7N+ng8AySxMyR9eS8cCmRVGUdpO3YG8vAnGUBUUdjrqH 3SCSMQqT8MYwbxhcYMbDhSOiluNBtquOOzJiHlh0t1vf6FB4O7ps78GtILqmArK+ssLY 1UPw== X-Gm-Message-State: APjAAAVHlmXH960zkC50DWuSQ7LSvjF+iFNXy4RF7wTxxnrOYpP1CTSI NHG/tx9RPNFO7r6YzZEw48X0579O5wY= X-Received: by 2002:a63:5a1f:: with SMTP id o31mr21859229pgb.254.1561183487696; Fri, 21 Jun 2019 23:04:47 -0700 (PDT) Received: from localhost ([123.213.206.190]) by smtp.gmail.com with ESMTPSA id w7sm954242pfb.117.2019.06.21.23.04.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Jun 2019 23:04:46 -0700 (PDT) Date: Sat, 22 Jun 2019 15:04:44 +0900 From: Minwoo Im To: Matias =?utf-8?B?QmrDuHJsaW5n?= Cc: axboe@fb.com, hch@lst.de, damien.lemoal@wdc.com, chaitanya.kulkarni@wdc.com, dmitry.fomichev@wdc.com, ajay.joshi@wdc.com, aravind.ramesh@wdc.com, martin.petersen@oracle.com, James.Bottomley@HansenPartnership.com, agk@redhat.com, snitzer@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, dm-devel@redhat.com, Matias =?utf-8?B?QmrDuHJsaW5n?= Subject: Re: [PATCH 1/4] block: add zone open, close and finish support Message-ID: <20190622060444.GA6975@minwooim-desktop> References: <20190621130711.21986-1-mb@lightnvm.io> <20190621130711.21986-2-mb@lightnvm.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190621130711.21986-2-mb@lightnvm.io> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-06-21 15:07:08, Matias Bjørling wrote: > @@ -226,6 +228,9 @@ int blkdev_reset_zones(struct block_device *bdev, > if (!blk_queue_is_zoned(q)) > return -EOPNOTSUPP; > > + if (!op_is_zone_mgmt_op(op)) > + return -EOPNOTSUPP; > + nitpick: -EINVAL looks better to return as Damien pointed out. Otherwise it looks good to me: Reviewed-by: Minwoo Im