* reduce blk queue and I/O capability printk to KERN_DEBUG?
@ 2004-04-30 19:50 Matt Domsch
2004-04-30 21:13 ` Jens Axboe
0 siblings, 1 reply; 4+ messages in thread
From: Matt Domsch @ 2004-04-30 19:50 UTC (permalink / raw)
To: axboe; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
Jens,
Any reason why this message isn't being printed at KERN_DEBUG or
thereabouts, as the comment immediately before it notes it's for
debugging purposes, and it's only interesting to kernel developers not
end users?
Thanks,
Matt
--
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
===== drivers/block/ll_rw_blk.c 1.244 vs edited =====
--- 1.244/drivers/block/ll_rw_blk.c Tue Apr 27 08:11:32 2004
+++ edited/drivers/block/ll_rw_blk.c Fri Apr 30 14:46:57 2004
@@ -284,7 +284,7 @@
* keep this for debugging for now...
*/
if (dma_addr != BLK_BOUNCE_HIGH && q != last_q) {
- printk("blk: queue %p, ", q);
+ printk(KERN_DEBUG "blk: queue %p, ", q);
if (dma_addr == BLK_BOUNCE_ANY)
printk("no I/O memory limit\n");
else
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: reduce blk queue and I/O capability printk to KERN_DEBUG?
2004-04-30 19:50 reduce blk queue and I/O capability printk to KERN_DEBUG? Matt Domsch
@ 2004-04-30 21:13 ` Jens Axboe
2004-04-30 21:28 ` Matt Domsch
0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2004-04-30 21:13 UTC (permalink / raw)
To: Matt Domsch; +Cc: linux-kernel
On Fri, Apr 30 2004, Matt Domsch wrote:
> Jens,
>
> Any reason why this message isn't being printed at KERN_DEBUG or
> thereabouts, as the comment immediately before it notes it's for
> debugging purposes, and it's only interesting to kernel developers not
> end users?
>
> Thanks,
> Matt
>
> --
> Matt Domsch
> Sr. Software Engineer, Lead Engineer
> Dell Linux Solutions linux.dell.com & www.dell.com/linux
> Linux on Dell mailing lists @ http://lists.us.dell.com
>
> ===== drivers/block/ll_rw_blk.c 1.244 vs edited =====
> --- 1.244/drivers/block/ll_rw_blk.c Tue Apr 27 08:11:32 2004
> +++ edited/drivers/block/ll_rw_blk.c Fri Apr 30 14:46:57 2004
> @@ -284,7 +284,7 @@
> * keep this for debugging for now...
> */
> if (dma_addr != BLK_BOUNCE_HIGH && q != last_q) {
> - printk("blk: queue %p, ", q);
> + printk(KERN_DEBUG "blk: queue %p, ", q);
> if (dma_addr == BLK_BOUNCE_ANY)
> printk("no I/O memory limit\n");
> else
It should just be deleted. As you note, it is a debug message. I
originally added it so we would have some clues as to dma capability for
bug reports. There never was any, the check can go :)
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: reduce blk queue and I/O capability printk to KERN_DEBUG?
2004-04-30 21:13 ` Jens Axboe
@ 2004-04-30 21:28 ` Matt Domsch
2004-04-30 21:44 ` Matt Domsch
0 siblings, 1 reply; 4+ messages in thread
From: Matt Domsch @ 2004-04-30 21:28 UTC (permalink / raw)
To: Jens Axboe, akpm; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]
On Fri, Apr 30, 2004 at 11:13:43PM +0200, Jens Axboe wrote:
> It should just be deleted. As you note, it is a debug message. I
> originally added it so we would have some clues as to dma capability for
> bug reports. There never was any, the check can go :)
OK, please ack the below for Andrew then.
Remove blk: queue xxxx I/O limit xxxx messages printed by all block devices
This was a debug message and is no longer needed.
===== drivers/block/ll_rw_blk.c 1.244 vs edited =====
--- 1.244/drivers/block/ll_rw_blk.c Tue Apr 27 08:11:32 2004
+++ edited/drivers/block/ll_rw_blk.c Fri Apr 30 16:24:03 2004
@@ -280,17 +280,6 @@
} else
q->bounce_gfp = GFP_NOIO;
- /*
- * keep this for debugging for now...
- */
- if (dma_addr != BLK_BOUNCE_HIGH && q != last_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;
last_q = q;
}
--
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: reduce blk queue and I/O capability printk to KERN_DEBUG?
2004-04-30 21:28 ` Matt Domsch
@ 2004-04-30 21:44 ` Matt Domsch
0 siblings, 0 replies; 4+ messages in thread
From: Matt Domsch @ 2004-04-30 21:44 UTC (permalink / raw)
To: Jens Axboe, akpm; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]
On Fri, Apr 30, 2004 at 04:28:37PM -0500, Matt Domsch wrote:
> On Fri, Apr 30, 2004 at 11:13:43PM +0200, Jens Axboe wrote:
> > It should just be deleted. As you note, it is a debug message. I
> > originally added it so we would have some clues as to dma capability for
> > bug reports. There never was any, the check can go :)
Second try, let's remove the unused variables.
Please ack the below for Andrew then.
Likewise for 2.4 please?
Remove blk: queue xxxx I/O limit xxxx messages printed by all block
devices
This was a debug message and is no longer needed.
===== drivers/block/ll_rw_blk.c 1.244 vs edited =====
--- 1.244/drivers/block/ll_rw_blk.c Tue Apr 27 08:11:32 2004
+++ edited/drivers/block/ll_rw_blk.c Fri Apr 30 16:38:52 2004
@@ -265,8 +265,6 @@
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 *last_q;
/*
* set appropriate bounce gfp mask -- unfortunately we don't have a
@@ -280,19 +278,7 @@
} else
q->bounce_gfp = GFP_NOIO;
- /*
- * keep this for debugging for now...
- */
- if (dma_addr != BLK_BOUNCE_HIGH && q != last_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;
- last_q = q;
}
EXPORT_SYMBOL(blk_queue_bounce_limit);
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-30 21:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-30 19:50 reduce blk queue and I/O capability printk to KERN_DEBUG? Matt Domsch
2004-04-30 21:13 ` Jens Axboe
2004-04-30 21:28 ` Matt Domsch
2004-04-30 21:44 ` Matt Domsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox