Re: [PATCH] blktrace: Fix potentail deadlock between delete & sysfs ops

2017-08-15 Thread Steven Rostedt
On Thu, 10 Aug 2017 13:02:33 -0400 Waiman Long wrote: > The lockdep code had reported the following unsafe locking scenario: > >CPU0CPU1 > > lock(s_active#228); >

Re: [PATCH] loop: fix to a race condition due to the early registration of device

2017-08-15 Thread Jens Axboe
On 08/07/2017 06:37 AM, Anton Volkov wrote: > The early device registration made possible a race leading to allocations > of disks with wrong minors. > > This patch moves the device registration further down the loop_init > function to make the race infeasible. > > Found by Linux Driver

Long delays for I/Os using CFQ scheduler

2017-08-15 Thread Douglas Miller
I present a lot of information here, hopefully it is not too much. Perhaps this should be put in a bugzilla. I'm not familiar with CFQ, or other I/O schedulers, so have been doing more generic debugging. PROBLEM: I am observing some undesirable behavior in the CFQ I/O scheduler. I am seeing

Re: [PATCH] blk-mq: Fix queue usage on failed request allocation

2017-08-15 Thread Jens Axboe
On 08/14/2017 02:40 PM, Keith Busch wrote: > blk_mq_get_request() does not release the callers queue usage counter > when allocation fails. The caller still needs to account for its own > queue usage when it is unable to allocate a request. Thanks Keith, applied. -- Jens Axboe

Re: [PATCH] blk-mq: Fix queue usage on failed request allocation

2017-08-15 Thread Max Gurtovoy
On 8/14/2017 11:40 PM, Keith Busch wrote: blk_mq_get_request() does not release the callers queue usage counter when allocation fails. The caller still needs to account for its own queue usage when it is unable to allocate a request. Fixes: 1ad43c0078b7 ("blk-mq: don't leak preempt

[PATCH 11/12] nvme: add sed-opal ctrl manipulation in admin configuration

2017-08-15 Thread Sagi Grimberg
Signed-off-by: Sagi Grimberg --- drivers/nvme/host/core.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 4344adff7134..19aa68f1fb4a 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c

Re: [PATCH] blk-mq: Fix queue usage on failed request allocation

2017-08-15 Thread Sagi Grimberg
Looks good, Reviewed-by: Sagi Grimberg

[PATCH 12/12] nvme-loop: convert to nvme-core control plane management

2017-08-15 Thread Sagi Grimberg
rip out all the controller and queues control plane code, only maintain queue alloc/free/start/stop and tagset alloc/free. Signed-off-by: Sagi Grimberg --- This patch failed to generate a nice diff :( drivers/nvme/target/loop.c | 443

[PATCH 07/12] nvme-rdma: split generic probe out of create_ctrl

2017-08-15 Thread Sagi Grimberg
This code is replicated for several transports, prepare to move it to the core. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/rdma.c | 81 1 file changed, 47 insertions(+), 34 deletions(-) diff --git

[PATCH 03/12] nvme-rdma: split nvme_rdma_alloc_io_queues

2017-08-15 Thread Sagi Grimberg
We're going to call it from the core, so split nr_io_queues setting to the call-sites. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/rdma.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/nvme/host/rdma.c

[PATCH 09/12] nvme: move control plane handling to nvme core

2017-08-15 Thread Sagi Grimberg
handle controller setup (probe), reset and delete in nvme-core and rip it our from nvme-rdma. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/core.c | 296 +++ drivers/nvme/host/nvme.h | 11 ++ drivers/nvme/host/rdma.c | 290

Centralize nvme controller reset, delete and fabrics periodic reconnects

2017-08-15 Thread Sagi Grimberg
This is the third part of the attempt to centralize controller reset, delete and fabrics error recovery in nvme core. As a reminder, the motivation is to get as much of the duplicate logic existing in the various nvme transports to coommon code as possible. We strive to have nvme core and fabrics

[PATCH 10/12] nvme-fabrics: handle reconnects in fabrics library

2017-08-15 Thread Sagi Grimberg
Rip the nvme-rdma equivalent. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/fabrics.c | 103 +++ drivers/nvme/host/fabrics.h | 1 + drivers/nvme/host/rdma.c| 114 +++- 3 files changed, 110

[PATCH 05/12] nvme-rdma: introduce nvme_rdma_alloc/stop/free_admin_queue

2017-08-15 Thread Sagi Grimberg
The core will eventually call this type of callouts to allocate/stop/free the HW admin queue. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/rdma.c | 81 1 file changed, 55 insertions(+), 26 deletions(-) diff --git

[PATCH 04/12] nvme-rdma: restructure create_ctrl a bit

2017-08-15 Thread Sagi Grimberg
We'd like to split the generic part out, so rearrange to ease the split. post_configure will be called after the controller basic configuration occured and identification. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/rdma.c | 89

[PATCH 02/12] nvme-rdma: move admin specific resources to alloc_queue

2017-08-15 Thread Sagi Grimberg
We're trying to make admin queue configuration generic, so move the rdma specifics to the queue allocation (based on the queue index passed). Signed-off-by: Sagi Grimberg --- drivers/nvme/host/rdma.c | 37 + 1 file changed, 21 insertions(+),

[PATCH 01/12] nvme: move err and reconnect work to nvme ctrl

2017-08-15 Thread Sagi Grimberg
In theory, all fabric transports can/should use these. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/core.c | 4 drivers/nvme/host/nvme.h | 3 +++ drivers/nvme/host/rdma.c | 29 +++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff