[PATCH 7/8] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2016-12-16 Thread Jens Axboe
This is basically identical to deadline-iosched, except it registers as a MQ capable scheduler. This is still a single queue design. Signed-off-by: Jens Axboe --- block/Kconfig.iosched | 6 + block/Makefile| 1 + block/mq-deadline.c | 649

[PATCH 5/8] blk-mq: export some helpers we need to the scheduling framework

2016-12-16 Thread Jens Axboe
Signed-off-by: Jens Axboe --- block/blk-mq.c | 39 +-- block/blk-mq.h | 25 + 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 6eeae30cc027..c3119f527bc1 100644 ---

[PATCHSET v4] blk-mq-scheduling framework

2016-12-16 Thread Jens Axboe
This is version 4 of this patchset, version 3 was posted here: https://marc.info/?l=linux-block=148178513407631=2 >From the discussion last time, I looked into the feasibility of having two sets of tags for the same request pool, to avoid having to copy some of the request fields at dispatch and

[PATCH 2/8] blk-mq: make mq_ops a const pointer

2016-12-16 Thread Jens Axboe
We never change it, make that clear. Signed-off-by: Jens Axboe Reviewed-by: Bart Van Assche --- block/blk-mq.c | 2 +- include/linux/blk-mq.h | 2 +- include/linux/blkdev.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 4/8] blk-mq: un-export blk_mq_free_hctx_request()

2016-12-16 Thread Jens Axboe
It's only used in blk-mq, kill it from the main exported header and kill the symbol export as well. Signed-off-by: Jens Axboe --- block/blk-mq.c | 5 ++--- include/linux/blk-mq.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/block/blk-mq.c

[PATCH 3/8] block: move rq_ioc() to blk.h

2016-12-16 Thread Jens Axboe
We want to use it outside of blk-core.c. Signed-off-by: Jens Axboe --- block/blk-core.c | 16 block/blk.h | 16 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index

[PATCH 1/8] block: move existing elevator ops to union

2016-12-16 Thread Jens Axboe
Prep patch for adding MQ ops as well, since doing anon unions with named initializers doesn't work on older compilers. Signed-off-by: Jens Axboe --- block/blk-ioc.c | 8 +++ block/blk-merge.c| 4 ++-- block/blk.h | 10

Re: [dm-devel] [PATCH] dm-crypt: fix lost ioprio when queuing crypto bios from task with ioprio

2016-12-16 Thread Eric Wheeler
On Wed, 14 Dec 2016, Eric Wheeler wrote: > Since dm-crypt queues writes (and sometimes reads) to a different kernel > thread (workqueue), the bios will dispatch from tasks with different > io_context->ioprio settings than the submitting task, thus giving > incorrect ioprio hints to the io

RE: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-16 Thread Matthew Wilcox
From: Rasmus Villemoes [mailto:li...@rasmusvillemoes.dk] > On Fri, Dec 16 2016, Matthew Wilcox wrote: > > Thanks for your work on this; you've really put some effort into > > proving your work has value. My motivation was purely aesthetic, but > > you've got some genuine

Re: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-16 Thread Rasmus Villemoes
On Fri, Dec 16 2016, Matthew Wilcox wrote: > From: Andrew Morton [mailto:a...@linux-foundation.org] >> On Thu, 8 Dec 2016 02:22:55 +0100 Rasmus Villemoes >> wrote: >> > TL;DR: these patches save 250 KB of memory, with more low-hanging >> >

[PATCH 1/2] nvme : Use correct scnprintf in cmb show

2016-12-16 Thread Stephen Bates
Make sure we are using the correct scnprintf in the sysfs show function for the CMB. Signed-off-by: Stephen Bates --- drivers/nvme/host/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index

[PATCH 0/2] nvme: Improvements in sysfs entry for NVMe CMBs

2016-12-16 Thread Stephen Bates
Hi This series adds some more verbosity to the NVMe CMB sysfs entry. Jens I based this off v4.9 because for some reason your for-4.10/block is missing my original CMB commit (202021c1a63c6)? Stephen Stephen Bates (2): nvme : Use correct scnprintf in cmb show nvme: improve cmb sysfs

Re: [PATCH 0/2] nvme: Improvements in sysfs entry for NVMe CMBs

2016-12-16 Thread Jens Axboe
On 12/16/2016 11:54 AM, Stephen Bates wrote: > Hi > > This series adds some more verbosity to the NVMe CMB sysfs entry. > > Jens I based this off v4.9 because for some reason your for-4.10/block > is missing my original CMB commit (202021c1a63c6)? for-4.10/block was forked off v4.9-rc1, and

[PATCH 2/2] nvme: improve cmb sysfs reporting

2016-12-16 Thread Stephen Bates
Add more information to the NVMe CMB sysfs entry. This includes information about the CMB size, location and capabilities. Signed-off-by: Stephen Bates --- drivers/nvme/host/pci.c | 31 +-- include/linux/nvme.h| 8 2 files changed,

RE: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-16 Thread Matthew Wilcox
From: Andrew Morton [mailto:a...@linux-foundation.org] > On Thu, 8 Dec 2016 02:22:55 +0100 Rasmus Villemoes > wrote: > > TL;DR: these patches save 250 KB of memory, with more low-hanging > > fruit ready to pick. > > > > While browsing through the lib/idr.c code, I

Re: [PATCH] block: Remove unused member (busy) from struct blk_queue_tag

2016-12-16 Thread Jens Axboe
On 12/15/2016 09:41 PM, Ritesh Harjani wrote: > Signed-off-by: Ritesh Harjani > --- > include/linux/blkdev.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h > index 286b2a2..8369564 100644 > ---

Re: [PATCH] block: Remove unused member (busy) from struct blk_queue_tag

2016-12-16 Thread Ritesh Harjani
On 12/16/2016 3:57 PM, Bart Van Assche wrote: On 12/16/2016 05:41 AM, Ritesh Harjani wrote: Signed-off-by: Ritesh Harjani --- include/linux/blkdev.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index

Re: [PATCH] block: Remove unused member (busy) from struct blk_queue_tag

2016-12-16 Thread Bart Van Assche
On 12/16/2016 05:41 AM, Ritesh Harjani wrote: > Signed-off-by: Ritesh Harjani > --- > include/linux/blkdev.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h > index 286b2a2..8369564 100644 > ---

Re: [Lsf-pc] [LSF/MM TOPIC] Un-addressable device memory and block/fs implications

2016-12-16 Thread Jan Kara
On Thu 15-12-16 14:14:53, Jerome Glisse wrote: > On Thu, Dec 15, 2016 at 05:19:39PM +0100, Jan Kara wrote: > > On Wed 14-12-16 12:15:14, Jerome Glisse wrote: > > > page handling> > > > > > > So won't it be easier to leave the pagecache page where it is and > > > > *copy* it > > > > to the