linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* 2.6.8-rc3-mm2:  Debug: sleeping function called from invalid context at mm/mempool.c:197
@ 2004-08-09 13:41 Janet Morgan
  0 siblings, 0 replies; 3+ messages in thread
From: Janet Morgan @ 2004-08-09 13:41 UTC (permalink / raw)
  To: linux-kernel, linux-mm

I see the msg below while running on 2.6.8-rc3-mm2, but not on the plain 
rc3 tree;
ditto for rc1-mm1 vs rc1, which is as far back as I've gone so far.

I'm using QLogic QLA2200 adapters and both ext2/ext3 filesystems.  
The problem is very recreatable for me -- I pretty much just open a 
large file on one
of the qlogic-attached devices.

I tried backing out bk-scsi.patch for the heck of it, but I still see 
the problem.

Aug  9 10:33:43 elm3b81 kernel: Debug: sleeping function called from 
invalid context at mm/mempool.c:197
Aug  9 10:33:43 elm3b81 kernel: in_atomic():1, irqs_disabled():0
Aug  9 10:33:43 elm3b81 kernel:  [<c0105f4e>] dump_stack+0x1e/0x30
Aug  9 10:33:43 elm3b81 kernel:  [<c011d2a9>] __might_sleep+0x99/0xb0
Aug  9 10:33:43 elm3b81 kernel:  [<c013dadb>] mempool_alloc+0x14b/0x150
Aug  9 10:33:43 elm3b81 kernel:  [<f8a6cb8c>] 
qla2x00_get_new_sp+0x1c/0x30 [qla2xxx]
Aug  9 10:33:43 elm3b81 kernel:  [<f8a6868a>] 
qla2x00_queuecommand+0x3a/0x6a0 [qla2xxx]
Aug  9 10:33:43 elm3b81 kernel:  [<c036f941>] scsi_dispatch_cmd+0x141/0x1e0
Aug  9 10:33:43 elm3b81 kernel:  [<c0374c9f>] scsi_request_fn+0x1ef/0x3d0
Aug  9 10:33:43 elm3b81 kernel:  [<c0333b82>] blk_run_queue+0x32/0x50
Aug  9 10:33:43 elm3b81 kernel:  [<c03740f0>] scsi_end_request+0xd0/0xf0
Aug  9 10:33:43 elm3b81 kernel:  [<c0374404>] scsi_io_completion+0x134/0x440
Aug  9 10:33:43 elm3b81 kernel:  [<c0398d9f>] sd_rw_intr+0x5f/0x280
Aug  9 10:33:43 elm3b81 kernel:  [<c036fd63>] scsi_finish_command+0x73/0xb0
Aug  9 10:33:43 elm3b81 kernel:  [<c036fc8b>] scsi_softirq+0xab/0xd0
Aug  9 10:33:43 elm3b81 kernel:  [<c012427c>] __do_softirq+0xbc/0xd0
Aug  9 10:33:43 elm3b81 kernel:  [<c01242c5>] do_softirq+0x35/0x40
Aug  9 10:33:43 elm3b81 kernel:  [<c0107b47>] do_IRQ+0x107/0x130
Aug  9 10:33:43 elm3b81 kernel:  [<c0105a90>] common_interrupt+0x18/0x20

Thanks,
-Janet


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.8-rc3-mm2:  Debug: sleeping function called from invalid context at mm/mempool.c:197
  2004-08-09 23:56 Andrew Vasquez
@ 2004-08-10  0:16 ` Janet Morgan
  0 siblings, 0 replies; 3+ messages in thread
From: Janet Morgan @ 2004-08-10  0:16 UTC (permalink / raw)
  To: Andrew Vasquez; +Cc: linux-kernel, linux-mm, linux-scsi

Andrew Vasquez wrote:

>On Monday, August 09, 2004 6:42 AM, linux-kernel-owner@vger.kernel.org
>wrote: 
>  
>
>>I see the msg below while running on 2.6.8-rc3-mm2, but not
>>on the plain
>>rc3 tree;
>>ditto for rc1-mm1 vs rc1, which is as far back as I've gone so far.
>>
>>    
>>
>
>This allocation should be done with GFP_ATOMIC flags.  The attached 
>patch should apply cleanly to any recent kernel
>
>  
>

and seems to work fine.

Thanks,
-Janet

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: 2.6.8-rc3-mm2:  Debug: sleeping function called from invalid context at mm/mempool.c:197
@ 2004-08-09 23:56 Andrew Vasquez
  2004-08-10  0:16 ` Janet Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Vasquez @ 2004-08-09 23:56 UTC (permalink / raw)
  To: Janet Morgan, linux-kernel, linux-mm; +Cc: linux-scsi

[-- Attachment #1: Type: text/plain, Size: 397 bytes --]

On Monday, August 09, 2004 6:42 AM, linux-kernel-owner@vger.kernel.org
wrote: 
> I see the msg below while running on 2.6.8-rc3-mm2, but not
> on the plain
> rc3 tree;
> ditto for rc1-mm1 vs rc1, which is as far back as I've gone so far.
>

This allocation should be done with GFP_ATOMIC flags.  The attached 
patch should apply cleanly to any recent kernel.

Regards,
Andrew Vasquez

[-- Attachment #2: mpool_alloc.diff --]
[-- Type: application/octet-stream, Size: 392 bytes --]

===== drivers/scsi/qla2xxx/qla_os.c 1.39 vs edited =====
--- 1.39/drivers/scsi/qla2xxx/qla_os.c	2004-07-12 09:54:49 -07:00
+++ edited/drivers/scsi/qla2xxx/qla_os.c	2004-08-09 16:48:29 -07:00
@@ -3590,7 +3590,7 @@
 {
 	srb_t *sp;
 
-	sp = mempool_alloc(ha->srb_mempool, GFP_KERNEL);
+	sp = mempool_alloc(ha->srb_mempool, GFP_ATOMIC);
 	if (sp)
 		atomic_set(&sp->ref_count, 1);
 	return (sp);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-10  0:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-09 13:41 2.6.8-rc3-mm2: Debug: sleeping function called from invalid context at mm/mempool.c:197 Janet Morgan
2004-08-09 23:56 Andrew Vasquez
2004-08-10  0:16 ` Janet Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox