OSDN Git Service

[PATCH] block: remove the annoying 'blk: queue %p I/O limit %luMb' messages
authorWilly TARREAU <willy@pcw.(none)>
Sun, 7 May 2006 19:44:36 +0000 (21:44 +0200)
committerWilly TARREAU <willy@pcw.(none)>
Sun, 7 May 2006 19:44:36 +0000 (21:44 +0200)
This patch initially suggested by Matt Domsch seems to have got lost
in the noise. Its intent was to remove this annoying message that all
block devices print at boot. It was pure debugging and people still
take it for errors.

Signed-off-by: Willy Tarreau <willy@w.ods.org>
- Willy

drivers/block/ll_rw_blk.c

index 2a27aea..3924b24 100644 (file)
@@ -285,21 +285,6 @@ void blk_queue_make_request(request_queue_t * q, make_request_fn * mfn)
 void blk_queue_bounce_limit(request_queue_t *q, u64 dma_addr)
 {
        unsigned long bounce_pfn = dma_addr >> PAGE_SHIFT;
-       unsigned long mb = dma_addr >> 20;
-       static request_queue_t *old_q;
-
-       /*
-        * keep this for debugging for now...
-        */
-       if (dma_addr != BLK_BOUNCE_HIGH && q != old_q) {
-               old_q = q;
-               printk("blk: queue %p, ", q);
-               if (dma_addr == BLK_BOUNCE_ANY)
-                       printk("no I/O memory limit\n");
-               else
-                       printk("I/O limit %luMb (mask 0x%Lx)\n", mb,
-                              (long long) dma_addr);
-       }
 
        q->bounce_pfn = bounce_pfn;
 }