[PATCH v6 5/7] block: Implement support for zoned block devices

2016-09-30 Thread Shaun Tancheff
From: Hannes Reinecke Implement zoned block device zone information reporting and reset. Zone information are reported as struct blk_zone. This implementation does not differentiate between host-aware and host-managed device models and is valid for both. Two functions are provided: blkdev_report_

[PATCH v6 6/7] sd: Implement support for ZBC devices

2016-09-30 Thread Shaun Tancheff
From: Hannes Reinecke Implement ZBC support functions to setup zoned disks, both host-managed and host-aware models. Only zoned disks that satisfy the following conditions are supported: 1) All zones are the same size, with the exception of an eventual last smaller runt zone. 2) For host-manag

[PATCH v6 7/7] blk-zoned: implement ioctls

2016-09-30 Thread Shaun Tancheff
Adds the new BLKREPORTZONE and BLKRESETZONE ioctls for respectively obtaining the zone configuration of a zoned block device and resetting the write pointer of sequential zones of a zoned block device. The BLKREPORTZONE ioctl maps directly to a single call of the function blkdev_report_zones. The

[PATCH v6 4/7] block: Define zoned block device operations

2016-09-30 Thread Shaun Tancheff
From: Shaun Tancheff Define REQ_OP_ZONE_REPORT and REQ_OP_ZONE_RESET for handling zones of host-managed and host-aware zoned block devices. With with these two new operations, the total number of operations defined reaches 8 and still fits with the 3 bits definition of REQ_OP_BITS. Signed-off-by

[PATCH v6 3/7] block: update chunk_sectors in blk_stack_limits()

2016-09-30 Thread Shaun Tancheff
From: Hannes Reinecke Signed-off-by: Hannes Reinecke Signed-off-by: Damien Le Moal Reviewed-by: Christoph Hellwig Reviewed-by: Martin K. Petersen Reviewed-by: Shaun Tancheff Tested-by: Shaun Tancheff --- block/blk-settings.c | 4 1 file changed, 4 insertions(+) diff --git a/block/blk

[PATCH v6 2/7] blk-sysfs: Add 'chunk_sectors' to sysfs attributes

2016-09-30 Thread Shaun Tancheff
From: Hannes Reinecke The queue limits already have a 'chunk_sectors' setting, so we should be presenting it via sysfs. Signed-off-by: Hannes Reinecke [Damien: Updated Documentation/ABI/testing/sysfs-block] Signed-off-by: Damien Le Moal Reviewed-by: Christoph Hellwig Reviewed-by: Martin K.

[PATCH v6 1/7] block: Add 'zoned' queue limit

2016-09-30 Thread Shaun Tancheff
From: Damien Le Moal Add the zoned queue limit to indicate the zoning model of a block device. Defined values are 0 (BLK_ZONED_NONE) for regular block devices, 1 (BLK_ZONED_HA) for host-aware zone block devices and 2 (BLK_ZONED_HM) for host-managed zone block devices. The standards defined drive

[PATCH v6 0/7] ZBC / Zoned block device support

2016-09-30 Thread Shaun Tancheff
This series introduces support for zoned block devices. It integrates earlier submissions by Hannes Reinecke, Damien Le Moal and Shaun Tancheff. Compared to the previous series version, the code was significantly simplified by limiting support to zoned devices satisfying the following conditions: 1

Re: [PATCH v5 0/7] ZBC / Zoned block device support

2016-09-30 Thread Shaun Tancheff
Hello Bart, I rebased this series on Jens for-4.9/block and will repost. Thanks! --Shaun On Fri, Sep 30, 2016 at 12:18 PM, Bart Van Assche wrote: > On 09/30/2016 09:47 AM, Shaun Tancheff wrote: >> On Fri, Sep 30, 2016 at 11:10 AM, Bart Van Assche >> wrote: >>> On 09/29/16 21:11, Damien Le Moal

Re: [PATCH v5 0/7] ZBC / Zoned block device support

2016-09-30 Thread Bart Van Assche
On 09/30/2016 09:47 AM, Shaun Tancheff wrote: > On Fri, Sep 30, 2016 at 11:10 AM, Bart Van Assche > wrote: >> On 09/29/16 21:11, Damien Le Moal wrote: >>> This series introduces support for zoned block devices. >> >> On top of which kernel version do these patches apply? I tried to apply the >> wh

Re: [PATCH v5 0/7] ZBC / Zoned block device support

2016-09-30 Thread Shaun Tancheff
Hi Bart, This series is against linux-next tag next-20160928. You should be able to "git am" the series on top of that. Thanks! Shaun On Fri, Sep 30, 2016 at 11:10 AM, Bart Van Assche wrote: > On 09/29/16 21:11, Damien Le Moal wrote: >> >> This series introduces support for zoned block devices.

Re: [PATCH v5 0/7] ZBC / Zoned block device support

2016-09-30 Thread Bart Van Assche
On 09/29/16 21:11, Damien Le Moal wrote: This series introduces support for zoned block devices. Hi Damien, On top of which kernel version do these patches apply? I tried to apply the whole series to kernel v4.7 but that caused "git am" to complain ... Thank you, Bart. -- To unsubscribe f

Re: [PATCH 2/3] ata: Enabling ATA Command Priorities

2016-09-30 Thread Adam Manzanares
The 09/29/2016 10:45, Tejun Heo wrote: > Hello, > > On Tue, Sep 27, 2016 at 11:14:55AM -0700, Adam Manzanares wrote: > > +/** > > + * ata_ncq_prio_enabled - Test whether NCQ prio is enabled > > + * @dev: ATA device to test for > > + * > > + * LOCKING: > > + * spin_lock_irqsave(host lock) > > + * >

Re: [PATCH 1/3] block: Add iocontext priority to request

2016-09-30 Thread Adam Manzanares
Hello Tejun, The 09/29/2016 10:40, Tejun Heo wrote: > Hello, > > On Tue, Sep 27, 2016 at 11:14:54AM -0700, Adam Manzanares wrote: > > Patch adds association between iocontext and a request. > > > > Signed-off-by: Adam Manzanares > > Can you please describe how this may impact existing usages?

Re: [PATCH v2 4/7] blk-mq: Introduce blk_quiesce_queue() and blk_resume_queue()

2016-09-30 Thread Bart Van Assche
On 09/29/16 14:51, Ming Lei wrote: On Thu, Sep 29, 2016 at 7:59 AM, Bart Van Assche wrote: blk_quiesce_queue() prevents that new queue_rq() invocations blk_mq_quiesce_queue() Thanks, I will update the patch title and patch description. +void blk_mq_quiesce_queue(struct request_queue *q) +

[PATCH v2 1/8] block: Get rid of unused request_queue::nr_queues member

2016-09-30 Thread Alexander Gordeev
CC: linux-block@vger.kernel.org Reviewed-by: Omar Sandoval Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 2 -- include/linux/blkdev.h | 1 - 2 files changed, 3 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 0be5577..c96a168 100644 --- a/block/blk-mq.c +++ b/bloc

[PATCH v2 3/8] blk-mq: Fix hardware context data node selection

2016-09-30 Thread Alexander Gordeev
CC: linux-block@vger.kernel.org Reviewed-by: Omar Sandoval Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 92c2519..e3e9b23 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -

[PATCH v2 4/8] blk-mq: Cleanup a loop exit condition

2016-09-30 Thread Alexander Gordeev
CC: linux-block@vger.kernel.org Reviewed-by: Omar Sandoval Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index e3e9b23..eed6e348 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@

[PATCH v2 7/8] blk-mq: Pair blk_mq_hctx_kobj_init() with blk_mq_hctx_kobj_put()

2016-09-30 Thread Alexander Gordeev
CC: linux-block@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq-sysfs.c | 5 + block/blk-mq.c | 2 +- block/blk-mq.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/block/blk-mq-sysfs.c b/block/blk-mq-sysfs.c index 01fb455..11846d0 100644 ---

[PATCH v2 2/8] blk-mq: Remove a redundant assignment

2016-09-30 Thread Alexander Gordeev
blk_mq_hw_ctx::queue_num is initialized in blk_mq_init_hctx() function. CC: linux-block@vger.kernel.org Reviewed-by: Omar Sandoval Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index c96a168..92c2519 100644

[PATCH v2 8/8] blk-mq: Cleanup (de-)allocation of blk_mq_hw_ctx::ctxs

2016-09-30 Thread Alexander Gordeev
Handling of blk_mq_hw_ctx::ctxs field (de-)allocation is confusing due to special treatment of the field introduced in commit c3b4afca7023 ("blk-mq: free hctx->ctxs in queue's release handler")'. Make it bit more readable by binding hctx and hctx->ctxs (de-)allocation. CC: linux-block@vger.kernel.

[PATCH v2 0/8] blk-mq: Minor cleanups

2016-09-30 Thread Alexander Gordeev
Hello, The series is against: git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next Thanks! CC: linux-block@vger.kernel.org Alexander Gordeev (8): block: Get rid of unused request_queue::nr_queues member blk-mq: Remove a redundant assignment blk-mq: Fix hardware

[PATCH v2 5/8] blk-mq: Cleanup blk_mq_hw_ctx::cpumask (de-)allocation

2016-09-30 Thread Alexander Gordeev
CC: linux-block@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 37 +++-- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index eed6e348..15c03c2 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c

[PATCH v2 6/8] blk-mq: Rework blk_mq_realloc_hw_ctxs()

2016-09-30 Thread Alexander Gordeev
Rework blk_mq_realloc_hw_ctxs() so deallocation is done in order reverse to allocation and indentation is bit more easy to read. CC: linux-block@vger.kernel.org Signed-off-by: Alexander Gordeev --- block/blk-mq.c | 40 ++-- 1 file changed, 22 insertions(+), 18

Re: [PATCH v2] blkcg: Unlock blkcg_pol_mutex once if cpd == NULL

2016-09-30 Thread Tejun Heo
On Thu, Sep 29, 2016 at 08:33:30AM -0700, Bart Van Assche wrote: > Unlocking a mutex twice is wrong. Hence modify blkcg_policy_register() > such that blkcg_pol_mutex is unlocked once if cpd == NULL. This patch > avoids that smatch reports the following error: > > block/blk-cgroup.c:1378: blkcg_pol

Re: [PATCH v5 7/7] blk-zoned: implement ioctls

2016-09-30 Thread Hannes Reinecke
On 09/30/2016 06:11 AM, Damien Le Moal wrote: From: Shaun Tancheff Adds the new BLKREPORTZONE and BLKRESETZONE ioctls for respectively obtaining the zone configuration of a zoned block device and resetting the write pointer of sequential zones of a zoned block device. The BLKREPORTZONE ioctl m

Re: [PATCH v5 4/7] block: Define zoned block device operations

2016-09-30 Thread Hannes Reinecke
On 09/30/2016 06:11 AM, Damien Le Moal wrote: From: Shaun Tancheff Define REQ_OP_ZONE_REPORT and REQ_OP_ZONE_RESET for handling zones of host-managed and host-aware zoned block devices. With with these two new operations, the total number of operations defined reaches 8 and still fits with the