lkml.org 
[lkml]   [2008]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] block: blk_queue_bounce_limits can actually sleep
    From: Arjan van de Ven <arjan@linux.intel.com>
    Subject: [PATCH] block: blk_queue_bounce_limits can actually sleep

    blk_queue_bounce_limit can call init_emergency_isa_pool, which
    does sleeping allocations... document it as such by adding might_sleep() to the driver

    Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
    ---
    block/blk-settings.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/block/blk-settings.c b/block/blk-settings.c
    index 8dd8641..c420a67 100644
    --- a/block/blk-settings.c
    +++ b/block/blk-settings.c
    @@ -148,6 +148,7 @@ void blk_queue_bounce_limit(struct request_queue *q, u64 dma_addr)
    q->bounce_pfn = b_pfn;
    #endif
    if (dma) {
    + might_sleep();
    init_emergency_isa_pool();
    q->bounce_gfp = GFP_NOIO | GFP_DMA;
    q->bounce_pfn = b_pfn;
    --
    1.5.4.5


    \
     
     \ /
      Last update: 2008-05-20 15:39    [W:0.022 / U:28.700 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site