Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2898549ybd; Mon, 24 Jun 2019 14:59:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvjQn9LCi94+3y/ZfHNauNxBfeqNyDsLlmqgSpv1TNKwIs3o6IgGmTDUL49bln6cZV0JQe X-Received: by 2002:a17:90a:342c:: with SMTP id o41mr27415080pjb.1.1561413571270; Mon, 24 Jun 2019 14:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413571; cv=none; d=google.com; s=arc-20160816; b=rjyNPtq1Ic0ULF5R5lmYYZJZtnHemaNGe8FCmRTJKGPHFWb4WD8c01c8+I0OzDFOml goyuRpH5Nl+LRcyYNHVcce89nhTKPHUD5jmScQSznduHtCZBXacI4n6/FcJH5JPSZusO wALFA9wzzdhrUc3KP+yXpJDgodZmivuTLb3WABdP29133rSuKIn8AfJJe1Ej292FSmac Q9LJiHjdHvU/48HvDtRMhLxkytfxsd93wuGBpO7zsU/UGYtcnn3ynfTrhXRMwDrEsLVx RQiF2AjGbdZZFiSHMzg8d+OC+avdkj9Y844DsX/KcXdf34sP4RDyd0dFVpLEsRJKWjun Mq0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7R7Jgd9WydHhug2XxYGNEVBmO/kY+JWSP4a6RvRNEUc=; b=ehquQ3Pe3zjGrQO8P7is5GTd6MkYs2bNZ06b5Xf5Qe/WCHVGIU0wPPaHW18ub5yeiO gwFRqtFLXQ2VfP9Pio8gTLHCM1KMGTx6l9FFDRrJZfYVA64h6Wp5ToWuvuJiM/LT5aI7 AEFvL62I7SqmSFrPfPIH5l5YTAr39lLJyjE9NOQXiRHq72U3bhg25wBKnqB4I2bZwnt2 7qHCdIBVH6RSHdIfO4i06t5H+/4tzkXJ+bcenA29I3UU47lut7L4koLQbCT4fjiHIfX2 dePfM6Uzxq7/vrSF4/Y0gwJ9siScMurM/CRm1goyl2/fhRM4OIMBUpgkWdqF1rjygkDF 9SHg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si667166pjv.38.2019.06.24.14.59.15; Mon, 24 Jun 2019 14:59:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729578AbfFXTnX (ORCPT + 99 others); Mon, 24 Jun 2019 15:43:23 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40194 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726402AbfFXTnX (ORCPT ); Mon, 24 Jun 2019 15:43:23 -0400 Received: by mail-pf1-f194.google.com with SMTP id p184so8100769pfp.7; Mon, 24 Jun 2019 12:43:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7R7Jgd9WydHhug2XxYGNEVBmO/kY+JWSP4a6RvRNEUc=; b=kTf3jCT8YYEtHWRHlqY0mlPyWmEOLPURtHeDOHddHwukCVSq8UpduGKoqTqfDQxwCI HenM/HoXh/o5rWj2yLTzt0mZAoLgVv2GZWqH3EJQDYdOuUa0D7wRsoKMN0QT57nQuBwd wGABuM9vOpMtuCix0HnBDkamxDS7voE7jiXqIzmCg9uDOXTJWMQGATjjA0BcsrD447O2 wCGqXPughtS/jt4wugBAsGfrXBvYgQHBYNcVax+OmXihs8ZwQ5KPoVmodan6xBcFQWpu ES3Qs6kM0BCl+LyNIZaQE6k2YbpTJqgUwiDA3wJukA5sOR6l0y9DOef5BCA8scBOXDbP eAiw== X-Gm-Message-State: APjAAAUFMkOmZ9Tjtk5n2Opy52p77YbYyTL2oSOVLtcX5W0m9k87wxJJ nxEg3P7B7NfINQJGly7GZaI= X-Received: by 2002:a63:4105:: with SMTP id o5mr35523361pga.308.1561405402022; Mon, 24 Jun 2019 12:43:22 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id c9sm12988231pfn.3.2019.06.24.12.43.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 12:43:21 -0700 (PDT) Subject: Re: [PATCH 1/4] block: add zone open, close and finish support To: =?UTF-8?Q?Matias_Bj=c3=b8rling?= , 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 Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, dm-devel@redhat.com, =?UTF-8?Q?Matias_Bj=c3=b8rling?= References: <20190621130711.21986-1-mb@lightnvm.io> <20190621130711.21986-2-mb@lightnvm.io> From: Bart Van Assche Message-ID: Date: Mon, 24 Jun 2019 12:43:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190621130711.21986-2-mb@lightnvm.io> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/19 6:07 AM, Matias Bjørling wrote: > diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h > index 95202f80676c..067ef9242275 100644 > --- a/include/linux/blk_types.h > +++ b/include/linux/blk_types.h > @@ -284,13 +284,20 @@ enum req_opf { > REQ_OP_DISCARD = 3, > /* securely erase sectors */ > REQ_OP_SECURE_ERASE = 5, > - /* reset a zone write pointer */ > - REQ_OP_ZONE_RESET = 6, > /* write the same sector many times */ > REQ_OP_WRITE_SAME = 7, > /* write the zero filled sector many times */ > REQ_OP_WRITE_ZEROES = 9, > > + /* reset a zone write pointer */ > + REQ_OP_ZONE_RESET = 16, > + /* Open zone(s) */ > + REQ_OP_ZONE_OPEN = 17, > + /* Close zone(s) */ > + REQ_OP_ZONE_CLOSE = 18, > + /* Finish zone(s) */ > + REQ_OP_ZONE_FINISH = 19, > + > /* SCSI passthrough using struct scsi_request */ > REQ_OP_SCSI_IN = 32, > REQ_OP_SCSI_OUT = 33, > @@ -375,6 +382,22 @@ static inline void bio_set_op_attrs(struct bio *bio, unsigned op, > bio->bi_opf = op | op_flags; > } Are the new operation types ever passed to op_is_write()? The definition of that function is as follows: static inline bool op_is_write(unsigned int op) { return (op & 1); }