Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp259198imm; Mon, 9 Jul 2018 00:55:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcODLkqCkid5ojHUsDbmswhq6GFVF2GR4aMcpKDXCApFuwPkzu2SoI/yQotZKJP8a2CfcIK X-Received: by 2002:a62:d693:: with SMTP id a19-v6mr20131067pfl.248.1531122957013; Mon, 09 Jul 2018 00:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531122956; cv=none; d=google.com; s=arc-20160816; b=b94OrYANMOiysidgKBReuU35G5HD94bJuWnP15Hsf4wDu6j2G1Wzp24qDd1O8ei422 J5RSJKHGRowp/mYyjscnclBW3/pnkctqIRPu68kkAsjo0RXi+EwxpVHbNWKUt63ZcWyW TtjS4icwKCSIrSlyqRjAttXP1xREDbxp2Y8D00llyYBxGXRQzAtxFq1APpJ/kWq6S4+f 8P6aRF8yag3GJ+RO4CfztjOX9i51iKW4pxfno6uv1iBzmpEmJ43Dlvm7W5zSLMZNc0id hFzOx8z7vTCd6SR6AVUU97pSdV+PWUS2qCzkJlcYOR2rS5BHDwuxGuO14Uo64tjjx6Id haeA== 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:dkim-signature :arc-authentication-results; bh=0VGBwGl6IwNiRYNsA+/8mlPuGp5dlalsU9PpGv0wXL4=; b=xVDGAl8JASHVAFTf5kUtCxSIrbuQOOo4Y5esJYmxOqLiqU4XpGvwsp18yloMxEy6mN ubdOAYZdkkIaZyVT5F4HhheQdGT86ZAv2jZqq8T6vw5uYpi9Vz2T7XwU6jWBRUdc/E6w CP8OMP1ZkTlTnzTW+JY8ZDjxkP1+N2CLclqvxQjXfms9T5OfpVa8E90SFPhxXv7yJnLE 8Ekyd2vlmekKBsb6PihtSmLvva/3dLzfDsjk9OwdHgKRZvm7sq3WoYvoWMhhayaVjOF+ Wg+4JUNvIeaVr4m514cAfA7Z7OTxMfmXmaYEWso+gtF9101VLDyvm8Z5RDwGHcCxEpJM dG6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=Dp3gxsp2; 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 u15-v6si15007541pfa.28.2018.07.09.00.55.41; Mon, 09 Jul 2018 00:55:56 -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=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=Dp3gxsp2; 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 S1754446AbeGIHzC (ORCPT + 99 others); Mon, 9 Jul 2018 03:55:02 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36604 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeGIHzA (ORCPT ); Mon, 9 Jul 2018 03:55:00 -0400 Received: by mail-lf0-f68.google.com with SMTP id b22-v6so1997886lfa.3 for ; Mon, 09 Jul 2018 00:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0VGBwGl6IwNiRYNsA+/8mlPuGp5dlalsU9PpGv0wXL4=; b=Dp3gxsp2cGViL87V/kVipCXF4jhWE/M0VHFEwin/A9rTK5LDYzkRnTRNrC0WFoNo9u upiPH57c/1z/OgJCUuRx/feSfhIPWc3LhWavVF3mkoBy7iwaNG6Iw35emhhrwz0ZG2KR YP+JLfnAfkDN+paApivB91UuU5bu8GqQrBPeG8o9muWsVHE43IW+aN2tBzQI8Zz70mf4 9D7UftYzmhkJ0YxSSWUNoEKaKNHipPy/a9r6b++Z4CYsBd180qj78lfT5+1Y1kce7pOq xuu3uWT4qpsW7gTO8wdei75f0ySo+QvaL5w7Ozb2lc2ihFw2vrIsPYST5jbbfA/SWm6D 7Jnw== 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=0VGBwGl6IwNiRYNsA+/8mlPuGp5dlalsU9PpGv0wXL4=; b=kLn1LYV933M9FW7y9l5V4OSNniDnGUIjFCR+UStQf6e/Zb6IbFZI/6fF8G3wyEnpvn 65Xaj+IKLF7zLQZIgSiPxqisb+KNnpqK/ZjPf+5oKeVvS3Ih5sfQKYicrqjpFcQ31rcE TaK997ix6vmsL4qLb1M8sgRJlNzCfkvcWvPfT2yn+EnwF8NKW9em/UQv/z8zUnN/zZ72 t7v0pVy1jCcZkXJnmLWCDkcg5ls3t1NjDj7nrFbY2L/BzZpL0Lb7xSGIUhvkfwHKbR+2 qMGp8qrvOrn/T6PIDPJQgLla5Ukybj0xBfa/6Cc1Emmz2VO5rKkhwZ0+SJU/GM9tKAh7 5BsQ== X-Gm-Message-State: APt69E2Bvt66qim93bUL4rRlUIo070mVr5NkQvYkqx4vmbTEYCeepJvM 1cM2kE9loM1yd2MG/c1UK2uBew== X-Received: by 2002:a19:9e8c:: with SMTP id h134-v6mr13089289lfe.63.1531122899224; Mon, 09 Jul 2018 00:54:59 -0700 (PDT) Received: from [192.168.0.10] (95-166-82-66-cable.dk.customer.tdc.net. [95.166.82.66]) by smtp.googlemail.com with ESMTPSA id h4-v6sm226992lfj.69.2018.07.09.00.54.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 00:54:57 -0700 (PDT) Subject: Re: [PATCH 0/2] null_blk: zone support To: loberman@redhat.com, axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Bart.VanAssche@wdc.com, Damien.LeMoal@wdc.com References: <20180706173839.28355-1-mb@lightnvm.io> <1530899118.31977.1.camel@redhat.com> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: <296d2d14-0bf6-e0a2-84dc-7d6e819625c1@lightnvm.io> Date: Mon, 9 Jul 2018 09:54:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1530899118.31977.1.camel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/06/2018 07:45 PM, Laurence Oberman wrote: > On Fri, 2018-07-06 at 19:38 +0200, Matias Bjørling wrote: >> This series adds support for exposing a zone block device using the >> null_blk device driver. >> >> The first patch moves core null_blk data structures to a shared >> header >> file. The second implements the actual zone support. The patchset >> adds >> two new options. One to enable the zone interface, and another to >> define the size of the zones to expose. >> >> Thanks, >> Matias >> >> Matias Bjørling (2): >>   null_blk: move shared definitions to header file >>   null_blk: add zone support >> >>  Documentation/block/null_blk.txt |   7 ++ >>  drivers/block/Makefile           |   5 +- >>  drivers/block/null_blk.c         | 124 ++++++++++++----------------- >> --- >>  drivers/block/null_blk.h         | 108 ++++++++++++++++++++++++++++ >>  drivers/block/null_blk_zoned.c   | 149 >> +++++++++++++++++++++++++++++++++++++++ >>  5 files changed, 315 insertions(+), 78 deletions(-) >>  create mode 100644 drivers/block/null_blk.h >>  create mode 100644 drivers/block/null_blk_zoned.c >> > > Thank you for this will be very useful. > I will test it to add value. > I dont know the code well enough to review it > Regards > Laurence > Great. For fio, you can use the zone support here: https://github.com/bvanassche/fio It is in the process of being upstreamed. Also, you'll need the latest libzbc/util-linux (blkzone) if you want to report zones. A bug was fixed around detection of the drive. https://github.com/hgst/libzbc https://github.com/karelzak/util-linux