On Thu, Jun 26, 2014 at 3:45 PM, Michael S. Tsirkin wrote:
> On Thu, Jun 26, 2014 at 10:08:46AM +0800, Ming Lei wrote:
>> Firstly this patch supports more than one virtual queues for virtio-blk
>> device.
>>
>> Secondly this patch maps the virtual queue to blk-mq's
Firstly this patch supports more than one virtual queues for virtio-blk
device.
Secondly this patch maps the virtual queue to blk-mq's hardware queue.
With this approach, both scalability and performance can be improved.
Signed-off-by: Ming Lei
---
drivers/block/virtio_blk.c |
feature of VIRTIO_BLK_F_MQ
so that more than one virtual queues can be used to virtio-blk
device, then above problems can be solved or eased.
Signed-off-by: Ming Lei
---
include/uapi/linux/virtio_blk.h |5 +
1 file changed, 5 insertions(+)
diff --git a/include/uapi/linux/virtio_blk.h b/include
same cache line
- make each queue's name different
V1:
- remove RFC since no one objects
- add '__u8 unused' for pending as suggested by Rusty
- use virtio_cread_feature() directly, suggested by Rusty
Thanks,
--
Ming Lei
--
To unsubscribe from this lis
On Thu, Jun 26, 2014 at 5:41 PM, Ming Lei wrote:
> Hi,
>
> These patches try to support multi virtual queues(multi-vq) in one
> virtio-blk device, and maps each virtual queue(vq) to blk-mq's
> hardware queue.
>
> With this approach, both scalability and performance on v
--
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Thanks,
--
Ming Lei
-
On Thu, Apr 17, 2014 at 10:57 PM, Christoph Hellwig wrote:
> On Thu, Apr 17, 2014 at 10:54:23PM +0800, Ming Lei wrote:
>> On Mon, Apr 14, 2014 at 4:30 PM, Christoph Hellwig wrote:
>> > If we want to share tag and request allocation between queues we cannot
>> > ini
Hi,
Three are fixes, and another one is cleanup.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FA
gned-off-by: Ming Lei
---
block/blk-mq.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 1eff3d9..b7a51ed 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -82,7 +82,6 @@ static struct request *__blk_mq_alloc_request(struct
blk_mq_h
Avoid memory leak in the failure path.
Signed-off-by: Ming Lei
---
block/blk-mq.c |1 +
1 file changed, 1 insertion(+)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index ee225cc..5fbbb22 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1289,6 +1289,7 @@ static int blk_mq_init_hw_queues
Signed-off-by: Ming Lei
---
block/blk-mq.c |7 +--
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index baff2d0..1eff3d9 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1130,12 +1130,7 @@ static void blk_mq_free_rq_map(struct
type of set->tags is struct blk_mq_tags **.
Signed-off-by: Ming Lei
---
block/blk-mq.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 5fbbb22..baff2d0 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1537,7 +1537,7 @@
On Fri, Apr 18, 2014 at 3:03 AM, Jörg-Volker Peetz wrote:
> Ming Lei wrote, on 04/17/2014 17:49:
>> Signed-off-by: Ming Lei
>> ---
>> block/blk-mq.c |7 +--
>> 1 file changed, 1 insertion(+), 6 deletions(-)
>>
>> diff --git a/block/blk-mq.c b/b
.h
CALLscripts/checksyscalls.sh
CHK include/generated/compile.h
CC block/blk-mq.o
CHK kernel/config_data.h
LD block/built-in.o
LINKvmlinux
LD vmlinux.o
MODPOST vmlinux.o
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe
Cc: Jörg-Volker Peetz
Cc: Max Filippov
Signed-off-by: Ming Lei
---
block/blk-mq.c |7 +--
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index c277797..3a560a4 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1130,12 +1130,7 @@ static
gned-off-by: Ming Lei
---
block/blk-mq.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 3a560a4..c26b3be 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -82,7 +82,6 @@ static struct request *__blk_mq_alloc_request(struct
blk_mq_h
Avoid memory leak in the failure path.
Reviewed-by: Christoph Hellwig
Signed-off-by: Ming Lei
---
block/blk-mq.c |1 +
1 file changed, 1 insertion(+)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index ee225cc..5fbbb22 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1289,6 +1289,7
type of set->tags is struct blk_mq_tags **.
Reviewed-by: Christoph Hellwig
Signed-off-by: Ming Lei
---
block/blk-mq.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 5fbbb22..c277797 100644
--- a/block/blk-mq.c
+++ b/block/blk-m
Hi,
Three of them are fixes, another one is cleanup.
V1:
- line break(2/4)
- use explicit cast(3/4)
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo inf
On Tue, Apr 22, 2014 at 9:03 AM, Jens Axboe wrote:
> On 2014-04-19 04:00, Ming Lei wrote:
>>
>> Hi,
>>
>> Three of them are fixes, another one is cleanup.
>>
>> V1:
>> - line break(2/4)
>> - use explicit cast(3/4)
>
>
>
Hi,
The first 6 patches convert current loop driver into blk-mq, and
loop's scalability can get improved a lot.
The 7th and 8th patches introduce kernel AIO support, most of
is borrow from Dave's work last year, and thanks to ITER_BVEC,
now it is easier to implement kernel AIO now.
The 9th patch
It is handy to use the two helpers for switching backend file
in loop driver, so export them.
Signed-off-by: Ming Lei
---
block/blk-mq.c |4 +++-
block/blk-mq.h |1 -
include/linux/blk-mq.h |2 ++
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/block
as cleanup too.
Signed-off-by: Ming Lei
---
drivers/block/loop.c | 294 ++
drivers/block/loop.h | 14 +--
2 files changed, 137 insertions(+), 171 deletions(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 6cb1beb..1af5265 100644
Currently pdu of the flush rq is simlpy copied from another rq,
it isn't enough to initialize pointer field well, so introduce
the callback for driver to handle the case easily.
Signed-off-by: Ming Lei
---
block/blk-mq.c |7 +++
include/linux/blk-mq.h | 11 +++
2
Switch to block request completely.
Signed-off-by: Ming Lei
---
drivers/block/loop.c | 46 --
1 file changed, 20 insertions(+), 26 deletions(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 1af5265..0729c3d 100644
--- a/drivers
No behaviour change, just move the handling for REQ_DISCARD
and REQ_FLUSH in these two functions.
Signed-off-by: Ming Lei
---
drivers/block/loop.c | 73 +++---
1 file changed, 40 insertions(+), 33 deletions(-)
diff --git a/drivers/block/loop.c b
block core handles REQ_FUA by its flush state machine, so
won't do it in loop explicitly.
Signed-off-by: Ming Lei
---
drivers/block/loop.c | 14 +++---
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 96f945e..96
ve Kleikamp
Cc: Benjamin LaHaise
Cc: Alexander Viro
Cc: linux-fsde...@vger.kernel.org
Cc: linux-...@kvack.org (open list:AIO)
Signed-off-by: Ming Lei
---
fs/aio.c| 114 +++
include/linux/aio.h | 21 +-
2 files changed, 134 i
For pages from kernel AIO, it is required to dirty
them before direct IO.
The idea is borrowd from Dave previous post.
Cc: Zach Brown
Cc: Dave Kleikamp
Cc: Benjamin LaHaise
Cc: Alexander Viro
Cc: linux-fsde...@vger.kernel.org
Signed-off-by: Ming Lei
---
fs/direct-io.c |9 ++---
1
Part of the patch is based on Dave's previous post.
It is easy to observe that loop block device thoughput
can be increased by > 100% in single job randread,
libaio engine, direct I/O fio test.
Cc: Zach Brown
Cc: Dave Kleikamp
Cc: Benjamin LaHaise
Signed-off-by: Ming Lei
---
drive
On Thu, Jul 24, 2014 at 7:16 AM, Zach Brown wrote:
> On Thu, Jul 24, 2014 at 06:55:28AM +0800, Ming Lei wrote:
>> From: Dave Kleikamp
>>
>> This adds an interface that lets kernel callers submit aio iocbs without
>> going through the user space syscalls. This lets
On Thu, Jul 24, 2014 at 6:55 AM, Ming Lei wrote:
> Part of the patch is based on Dave's previous post.
>
> It is easy to observe that loop block device thoughput
> can be increased by > 100% in single job randread,
> libaio engine, direct I/O fio test.
>
> Cc: Za
ELL_RBU=y
> and udev without the firmware loading support, but I don't have the
> hardware to test the lattice/dell drivers, so additional testing would
> be appreciated.
>
> Reviewed-by: Tom Gundersen
> Cc: Ming Lei
> Cc: Greg Kroah-Hartman
> Cc: Abhay
On Thu, Jun 5, 2014 at 9:12 PM, Dan Williams wrote:
> On Thu, Jun 5, 2014 at 1:53 AM, Ming Lei wrote:
>> Hi Dan and Tejun,
>>
>> Looks the commit 8a4aeec8d(libata/ahci: accommodate tag ordered
>> controllers) causes below sata failure[1] on APM AHCI controller.
>>
On Thu, Jun 5, 2014 at 8:25 PM, Tom Gundersen wrote:
>
> On 5 Jun 2014 14:18, "Ming Lei" wrote:
>>
>> On Wed, Jun 4, 2014 at 11:48 PM, Takashi Iwai wrote:
>> > [The patch was originally proposed by Tom Gundersen, and rewritten
>> > afterwards by me
On Thu, Jun 5, 2014 at 9:47 PM, Takashi Iwai wrote:
> At Thu, 5 Jun 2014 21:31:56 +0800,
> Ming Lei wrote:
>>
>> On Thu, Jun 5, 2014 at 8:25 PM, Tom Gundersen wrote:
>> >
>> > On 5 Jun 2014 14:18, "Ming Lei" wrote:
>> >>
>> >&
ith a small device that
> supported msi-x and could be used as an irq trigger :-)
Maybe null_blk at IRQ_TIMER mode is more close to
a real device, and I guess the result may be different with
mode IRQ_NONE/IRQ_SOFTIRQ.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line &qu
On Thu, Jun 5, 2014 at 10:05 PM, Takashi Iwai wrote:
> At Thu, 5 Jun 2014 21:59:52 +0800,
> Ming Lei wrote:
>>
>> On Thu, Jun 5, 2014 at 9:47 PM, Takashi Iwai wrote:
>> > At Thu, 5 Jun 2014 21:31:56 +0800,
>> > Ming Lei wrote:
>> >>
>> &
On Thu, Jun 5, 2014 at 10:32 PM, Tom Gundersen wrote:
> On Thu, Jun 5, 2014 at 4:24 PM, Ming Lei wrote:
>> On Thu, Jun 5, 2014 at 10:05 PM, Takashi Iwai wrote:
>>> At Thu, 5 Jun 2014 21:59:52 +0800,
>>> Ming Lei wrote:
>>>>
>>>> On Thu, Jun 5,
On Thu, Jun 5, 2014 at 11:15 PM, Tom Gundersen wrote:
> On Thu, Jun 5, 2014 at 4:54 PM, Ming Lei wrote:
>>> Ubuntu currently enables the firmware loader in both the kernel and in
>>> udev, so would not yet have a problem here at the moment. However, I
>>> spoke w
On Fri, Jun 6, 2014 at 1:17 AM, Jens Axboe wrote:
> On 06/05/2014 08:16 AM, Ming Lei wrote:
>> On Thu, Jun 5, 2014 at 10:03 PM, Jens Axboe wrote:
>>> On 2014-06-05 08:01, Alexander Gordeev wrote:
>>>>
>>>> On Wed, Jun 04, 2014 at 08:18:42AM -0600, Jens A
Hi Tejun,
On Thu, Jun 5, 2014 at 9:41 PM, Tejun Heo wrote:
> Hello,
>
> (cc'ing ahci_xgene folks)
>
> On Thu, Jun 05, 2014 at 09:24:04PM +0800, Ming Lei wrote:
>> On Thu, Jun 5, 2014 at 9:12 PM, Dan Williams
>> wrote:
>> > On Thu, Jun 5, 2014 at 1:53 AM
On Fri, Jun 6, 2014 at 9:55 AM, Jens Axboe wrote:
> On 2014-06-05 17:33, Ming Lei wrote:
>>
>> On Fri, Jun 6, 2014 at 1:17 AM, Jens Axboe wrote:
>>>
>>> On 06/05/2014 08:16 AM, Ming Lei wrote:
>>>>
>>>> On Thu, Jun 5, 2014 at 10:
On Fri, Jun 6, 2014 at 9:55 AM, Jens Axboe wrote:
> On 2014-06-05 17:33, Ming Lei wrote:
>>
>> On Fri, Jun 6, 2014 at 1:17 AM, Jens Axboe wrote:
>>>
>>> On 06/05/2014 08:16 AM, Ming Lei wrote:
>>>>
>>>> On Thu, Jun 5, 2014 at 10:
On Fri, Jun 6, 2014 at 10:57 AM, Dan Williams wrote:
> On Fri, 2014-06-06 at 09:47 +0800, Ming Lei wrote:
>> Hi Tejun,
>>
>> On Thu, Jun 5, 2014 at 9:41 PM, Tejun Heo wrote:
>> > Hello,
>> >
>> > (cc'ing ahci_xgene folks)
>> >
On Fri, Jun 6, 2014 at 10:15 PM, Tom Gundersen wrote:
> On Fri, Jun 6, 2014 at 4:03 PM, Takashi Iwai wrote:
>> At Fri, 6 Jun 2014 07:00:22 +0800,
>> Ming Lei wrote:
>>>
>>> On Thu, Jun 5, 2014 at 11:15 PM, Tom Gundersen wrote:
>>> > On
Hi Suman,
Could you forward the patches to me so that I can give a test?
I don't subscribe to linux-ide list.
Thanks,
--
Ming Lei
On Sat, Jun 7, 2014 at 5:33 AM, Suman Tripathi wrote:
> Hi ,
>
> I have just posted 3 patches "ata: Fix the dma state machine lockup for AP
nvme :00:07.0: completed id 0 twice on queue 0
when running fio randread(libaio, iodepth:64) with more than 3 jobs.
And looks no such failure when jobs is 1 or 2.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body
hment, but I will look at / test your next version.
Also, Loc mentioned that only your early chip has the problem,
I am wondering why you don't take Dan's approach just
for the affected chips?
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-ker
On Mon, Jun 9, 2014 at 2:00 PM, Matias Bjørling wrote:
> On Mon, Jun 9, 2014 at 6:35 AM, Ming Lei wrote:
>> On Fri, Jun 6, 2014 at 8:20 PM, Matias Bjørling wrote:
>>> This converts the current NVMe driver to utilize the blk-mq layer.
>>
>> Looks it can't
On Mon, Jun 9, 2014 at 3:50 PM, Ming Lei wrote:
> On Mon, Jun 9, 2014 at 2:00 PM, Matias Bjørling wrote:
>> On Mon, Jun 9, 2014 at 6:35 AM, Ming Lei wrote:
>>> On Fri, Jun 6, 2014 at 8:20 PM, Matias Bjørling wrote:
>>>> This converts the current NVMe driv
On Mon, Jun 9, 2014 at 3:53 PM, Ming Lei
>
> After pulling from your tree, the problem still persists.
>
> I test nvme over qemu, and both linus/next tree can
> work well with qemu nvme.
One problem I found is that rq->start_time isn't set
after you cleared IO_STAT
On Mon, Jun 9, 2014 at 10:08 PM, Jens Axboe wrote:
> On 2014-06-08 22:35, Ming Lei wrote:
>>
>> On Fri, Jun 6, 2014 at 8:20 PM, Matias Bjørling wrote:
>>>
>>> This converts the current NVMe driver to utilize the blk-mq layer.
>>
>>
>> Looks it
On Mon, Jun 9, 2014 at 11:10 PM, Jens Axboe wrote:
> On 2014-06-09 09:07, Ming Lei wrote:
>
> You are right, I didn't get to the bottom of the thread first.
> Might be better to just have ->start_time set always, regardless of io stats
> being enabled or not.
Yes, just li
f3d
>>
>>
>> So without this patch we can get duplicate completions? That could
>> explain the issues that Robert sees with scsi-mq and hpsa..
Use-after-free may cause duplicate completions.
BTW, is the scsi-mq patchset public now?
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
, there
is no such guarantee at all.
Signed-off-by: Ming Lei
---
block/blk-mq.c | 17 +
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index a6ee74e..bf6e13d 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -406,16 +40
.
Cc: Matias Bjørling
Cc: Christoph Hellwig
Signed-off-by: Ming Lei
---
block/blk-mq.c |1 +
1 file changed, 1 insertion(+)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index cb4c785..4c78539 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -462,6 +462,7 @@ void blk_mq_requeue_request
On Tue, Jun 10, 2014 at 7:28 PM, Christoph Hellwig wrote:
> On Tue, Jun 10, 2014 at 12:52:05PM +0800, Ming Lei wrote:
>> blk_mq_requeue_request() should kick off the requeue list so
>> that the request can be scheduled to queue finally.
>>
>> In nvme conversion patch,
On Tue, Jun 10, 2014 at 7:35 PM, Christoph Hellwig wrote:
> On Mon, Jun 09, 2014 at 11:35:00PM +0800, Ming Lei wrote:
>>
>> Use-after-free may cause duplicate completions.
>>
>> BTW, is the scsi-mq patchset public now?
>
> It always has been. I've posted it
On Tue, Jun 10, 2014 at 8:45 PM, Christoph Hellwig wrote:
> On Tue, Jun 10, 2014 at 07:45:47PM +0800, Ming Lei wrote:
>> OK, but the API name is a bit confusing, and that is easy to cause
>> misuse, like in nvme.
>>
>> Also requeue one request in completion handler
On Wed, Jun 4, 2014 at 1:24 PM, Gu Zheng wrote:
> Hi Guys,
> What's the status of this issue? Has it been fixed?
Yes, it is fixed by percpu_ref, and is merged to 3.15 already.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel&q
On Mon, Jun 9, 2014 at 6:40 PM, Ming Lei wrote:
> The root cause is that device returns
> NVME_INTERNAL_DEV_ERROR(0x6) with your conversion
> patch.
The above problem is caused by qemu not handling -EAGAIN from
io_submit(), so please ignore the report.
Thanks,
--
Ming Lei
--
To un
size = i_size_read(file_inode(file));
> if (size <= 0)
> return -EINVAL;
> buf = vmalloc(size);
> --
fw_file_size() not only return size of the file, but also
check if it is a regular file, and its size.
Thanks,
--
Ming Lei
--
To unsubscribe
On Fri, Jun 13, 2014 at 11:09 PM, Dmitry Kasatkin
wrote:
> There is no need to read attr because inode structure contains size
> of the file. Use i_size_read() instead.
>
> Signed-off-by: Dmitry Kasatkin
Acked-by: Ming Lei
Thanks,
--
Ming Lei
--
To unsubscribe from this list: s
Firstly this patch supports more than one virtual queues for virtio-blk
device.
Secondly this patch maps the virtual queue to blk-mq's hardware queue.
With this approach, both scalability and performance problem can be improved.
Signed-off-by: Ming Lei
---
drivers/block/virtio_blk.c |
of VIRTIO_BLK_F_MQ
so that more than one virtual queues can be used to virtio-blk
device, then above problems can be solved or eased.
Signed-off-by: Ming Lei
---
include/uapi/linux/virtio_blk.h |4
1 file changed, 4 insertions(+)
diff --git a/include/uapi/linux/virtio_blk.h b/include
feature
-- top thoughput: 199K iops
So even for one quadcore VM, if the virtqueue number is increased
from 1 to 2, both scalability and performance can get improved a
lot.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the b
On Tue, May 20, 2014 at 11:23 PM, Christoph Hellwig wrote:
> On Tue, May 20, 2014 at 11:20:25AM +0800, Ming Lei wrote:
>> - the conflict on the two structures just happens with flush
>> requests because rq->requeue_work is only used to queue
>> flush requests
>
>
On Wed, May 21, 2014 at 1:36 PM, Christoph Hellwig wrote:
> On Wed, May 21, 2014 at 01:16:14PM +0800, Ming Lei wrote:
>> I am wondering if virtio-blk is trivial block driver, :-)
>
> It's about as simple as it gets.
>
>> > The scsi-mq work that I plant to sub
l segment number is
bigger than queue_max_segments(), so wondering if
blk_recount_segments() can always decrease
physical segment number.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More major
page can be merged to last segment, it should have been
covered by code in branch of 'if (bio->bi_vcnt > 0) ...', shouldn't it?
Or maybe it is better to make that code cover your case since
looks your case is similar with that one according to your commit
log.
Thanks,
--
M
On Tue, May 27, 2014 at 7:58 PM, Maurizio Lombardi wrote:
> On Tue, May 27, 2014 at 06:15:45PM +0800, Ming Lei wrote:
>>
>> If the page can be merged to last segment, it should have been
>> covered by code in branch of 'if (bio->bi_vcnt > 0) ...', shouldn'
hctx->ctx_map should have been freed inside blk_mq_free_queue().
Signed-off-by: Ming Lei
---
block/blk-mq.c |1 +
1 file changed, 1 insertion(+)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 54e7886..ba39fa7 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1841,6 +1841,7 @@ v
Misc changes.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
blk_mq_exit_hw_queues() and blk_mq_free_hw_queues()
are introduced to avoid code duplication.
Signed-off-by: Ming Lei
---
block/blk-mq.c | 60 ++--
1 file changed, 37 insertions(+), 23 deletions(-)
diff --git a/block/blk-mq.c b/block/blk
The percpu counter is only used for blk-mq, so move
its allocation and free inside blk-mq, and don't
allocate it for legacy queue device.
Signed-off-by: Ming Lei
---
block/blk-core.c |7 +--
block/blk-mq.c|5 +
block/blk-sysfs.c |2 --
3 files changed, 6 inser
On Tue, May 27, 2014 at 10:36 PM, Jens Axboe wrote:
> On 05/27/2014 08:20 AM, Ming Lei wrote:
>> Misc changes.
>
> All look good, however they don't apply to the current for-3.16/core
> branch. What are they against? I hand applied 1, but could you
> regenerate 2+3 aga
Hi,
Misc changes, and the v1 is against the latest for-next
branch of block tree.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org
hctx->ctx_map should have been freed inside blk_mq_free_queue().
Signed-off-by: Ming Lei
---
block/blk-mq.c |1 +
1 file changed, 1 insertion(+)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 62082c5..dad22a9 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1846,6 +1846,7 @@ v
The percpu counter is only used for blk-mq, so move
its allocation and free inside blk-mq, and don't
allocate it for legacy queue device.
Signed-off-by: Ming Lei
---
block/blk-core.c |7 +--
block/blk-mq.c|5 +
block/blk-sysfs.c |2 --
3 files changed, 6 inser
blk_mq_exit_hw_queues() and blk_mq_free_hw_queues()
are introduced to avoid code duplication.
Signed-off-by: Ming Lei
---
block/blk-mq.c | 61 ++--
1 file changed, 37 insertions(+), 24 deletions(-)
diff --git a/block/blk-mq.c b/block/blk
d it.
Looks writing over ext4(especially sync writing) can survive
with Christoph's patch now, thanks Christoph.
Reported-and-tested-by: Ming Lei
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord..
why bi_iter.bi_size need to be
decreased by 'len'? In the failure path, it wasn't added by
'len', was it?
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
On Wed, May 28, 2014 at 11:42 PM, Ming Lei wrote:
> Hi Dongsu,
>
> On Wed, May 28, 2014 at 11:09 PM, Dongsu Park
> wrote:
>> From: Dongsu Park
>>
>> Commit 3979ef4dcf3d1de55a560a3a4016c30a835df44d ("bio-modify-
>> __bio_add_page-to-accept-pages-that-dont
On Thu, May 29, 2014 at 1:21 AM, Maurizio Lombardi wrote:
> Hi Ming,
>
> On Thu, May 29, 2014 at 12:59:19AM +0800, Ming Lei wrote:
>>
>> Actually, the correct thing may be like what did in the
>> attached patch, as Maurizio discussed with me[1].
>>
>> Ve
On Thu, May 29, 2014 at 11:35 AM, Jet Chen wrote:
> On 05/29/2014 12:59 AM, Ming Lei wrote:
>> On Wed, May 28, 2014 at 11:42 PM, Ming Lei wrote:
>>> Hi Dongsu,
>>>
>>> On Wed, May 28, 2014 at 11:09 PM, Dongsu Park
>>> wr
Hi,
On Tue, Apr 29, 2014 at 10:53 PM, Ming Lei wrote:
> Hi,
>
> These patches support to export percpu_ida allocation/free information
> via sysfs, so that percpu_ida performance can be monitored, and
> at least two use cases:
>
> - some parameters(such as percpu_max_siz
On Thu, May 29, 2014 at 2:06 PM, Jet Chen wrote:
> On 05/29/2014 01:44 AM, Ming Lei wrote:
> This patch works, thanks.
>
> Tested-by: Jet Chen
Jet, thanks for your test.
On Thu, May 29, 2014 at 3:04 PM, Maurizio Lombardi wrote:
>
> Jens, can you review and merge it?
I wil
817095&w=2
Cc: Jens Axboe
Cc: Maurizio Lombardi
Cc: Dongsu Park
Cc: Christoph Hellwig
Cc: Kent Overstreet
Cc: Andrew Morton
Reported-by: Jet Chen
Tested-by: Jet Chen
Signed-off-by: Ming Lei
---
Andrew, could you put the patch in your -mm tree
because the previous two patches were
engine=libaio
iodepth=64
filename=/dev/vdc
group_reporting=1
[f1]
rw=randread
Cc: Rusty Russell
Cc: "Michael S. Tsirkin"
Cc: virtualizat...@lists.linux-foundation.org
Signed-off-by: Ming Lei
---
drivers/block/virtio_blk.c |9 +
On Fri, May 30, 2014 at 11:19 AM, Jens Axboe wrote:
> On 2014-05-29 20:49, Ming Lei wrote:
>>
>> Firstly, it isn't necessary to hold lock of vblk->vq_lock
>> when notifying hypervisor about queued I/O.
>>
>> Secondly, virtqueue_notify() will cause world sw
On Fri, May 30, 2014 at 11:35 AM, Jens Axboe wrote:
> On 2014-05-29 21:34, Ming Lei wrote:
>>
>> On Fri, May 30, 2014 at 11:19 AM, Jens Axboe wrote:
>>>
>>> On 2014-05-29 20:49, Ming Lei wrote:
>>>>
>>>>
>>>> Firstly,
Hi Jens,
These two patches fix the problem of schedule from atomic context
which is introduced in bitmap based allocation.
Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordo
The blk-mq tag code need these helpers.
Signed-off-by: Ming Lei
---
block/blk-mq.c | 22 --
block/blk-mq.h | 22 ++
2 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 0f5879c..b9230c5 100644
--- a
blk_mq_put_ctx() has to be called before io_schedule() in
bt_get().
This patch fixes the problem by taking similar approach from
percpu_ida allocation for the situation.
Signed-off-by: Ming Lei
---
block/blk-mq-tag.c | 48 +++-
block/blk-mq-tag.h
large to warrant a stable inclusion even if it isn't a
>> regression.
>
> If you're running SMP under an emulator where exits are expensive, then
> this wins. Under KVM it's marginal at best.
Both my tests on arm64 and x86 are under KVM, and looks the
patch can impro
'struct blk_mq_ctx' is __percpu, so add the annotation
and fix the sparse warning reported from Fengguang:
[block:for-linus 2/3] block/blk-mq.h:75:16: sparse: incorrect
type in initializer (different address spaces)
Reported-by: kbuild test robot
Signed-off-by
ned int tag)
> {
> struct request *rq = tags->rqs[tag];
>
> if ((rq->cmd_flags & REQ_FLUSH_SEQ) && rq->q->flush_rq->tag == tag)
> return rq->q->flush_rq;
> return rq;
> }
Looks we thought it together, :-)
Also may
On Wed, Jun 4, 2014 at 11:48 PM, Jens Axboe wrote:
> On 06/04/2014 09:43 AM, Ming Lei wrote:
>> On Wed, Jun 4, 2014 at 11:31 PM, Christoph Hellwig
>> wrote:
>>> On Wed, Jun 04, 2014 at 09:02:19AM -0600, Jens Axboe wrote:
>>>>> scsi_mq_find_tag only gets
On Thu, Jun 5, 2014 at 12:09 AM, Jens Axboe wrote:
> On 06/04/2014 10:00 AM, Ming Lei wrote:
>> On Wed, Jun 4, 2014 at 11:48 PM, Jens Axboe wrote:
>>> On 06/04/2014 09:43 AM, Ming Lei wrote:
>>>> On Wed, Jun 4, 2014 at 11:31 PM, Christoph Hellwig
>>>>
1201 - 1300 of 2944 matches
Mail list logo