lkml.org 
[lkml]   [2014]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 26/39] HACK: support blk_delay_queue for blk-mq
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    ---
    block/blk-core.c | 11 ++++++++---
    1 file changed, 8 insertions(+), 3 deletions(-)

    diff --git a/block/blk-core.c b/block/blk-core.c
    index 4cd5ffc..47af781 100644
    --- a/block/blk-core.c
    +++ b/block/blk-core.c
    @@ -163,9 +163,14 @@ static void blk_delay_work(struct work_struct *work)
    struct request_queue *q;

    q = container_of(work, struct request_queue, delay_work.work);
    - spin_lock_irq(q->queue_lock);
    - __blk_run_queue(q);
    - spin_unlock_irq(q->queue_lock);
    +
    + if (q->mq_ops) {
    + blk_mq_start_stopped_hw_queues(q, false);
    + } else {
    + spin_lock_irq(q->queue_lock);
    + __blk_run_queue(q);
    + spin_unlock_irq(q->queue_lock);
    + }
    }

    /**
    --
    1.7.10.4



    \
     
     \ /
      Last update: 2014-03-17 16:01    [W:5.936 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site