From: Dan Dennedy <dan@dennedy.org>
To: Parag Warudkar <kernel-stuff@comcast.net>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org,
Linux1394-Devel <linux1394-devel@lists.sourceforge.net>
Subject: Re: [PATCH] ohci1394: dma_pool_destroy while in_atomic() && irqs_disabled()
Date: Fri, 11 Feb 2005 10:35:33 -0500 [thread overview]
Message-ID: <1108136133.4149.3.camel@kino.dennedy.org> (raw)
In-Reply-To: <41FD8796.2020509@comcast.net>
On Sun, 2005-01-30 at 20:19 -0500, Parag Warudkar wrote:
> Attached is the reworked patch to take care of Andrew's suggestions -
>
> 1) Allocate the work struct dynamically in struct ti_ohci during device
> probe, free it during device remove
> 2) In ohci1394_pci_remove, ensure queued work, if any, is flushed before
> the device is removed (As I understand, this should work for both device
> removal cases as well as module removal - correct?)
> 3) Rework the free_dma_rcv_ctx - It is called in multiple contexts by
> different callers - teach it to free the dma according to caller's wish
> - either direct free where caller determines the context is safe to
> sleep OR delayed via schedule_work when caller wants to call it from a
> context where it cannot sleep. So it now takes 2 extra arguments -
> method to free - direct or delayed and if it is to be freed delayed, an
> appropriate work_struct.
>
> Andrew - flush_scheduled_work does not touch work which isn't shceduled
> - so I don't think INIT_WORK in setup is necessary. Let me know if I am
> missing something here. (I tried INIT_WORK in ochi1394_pci_probe and
> putting flush_scheduled_work in ohci1394_pci_remove - It did not result
> in calling the work function after I did rmmod, since it wasn't scheduled.)
>
I am testing this patch in the same manner as you: exiting Kino capture.
I am getting a similar error in a different location. Can you look into
it, please?
Debug: sleeping function called from invalid context at mm/slab.c:2082
in_atomic():1, irqs_disabled():1
[<c0119eb1>] __might_sleep+0xa1/0xc0
[<c0144914>] kmem_cache_alloc+0x64/0x80
[<c037f07b>] dma_pool_create+0x7b/0x190
[<e09ede32>] alloc_dma_rcv_ctx+0x1a2/0x400 [ohci1394]
[<e09eb239>] ohci_devctl+0x3d9/0x640 [ohci1394]
[<e0bc5d4e>] handle_iso_listen+0xee/0x160 [raw1394]
[<e0bc878e>] state_connected+0x2de/0x2f0 [raw1394]
[<e0bc884e>] raw1394_write+0xae/0xe0 [raw1394]
[<c015c80c>] vfs_write+0x14c/0x160
[<c015c8f1>] sys_write+0x51/0x80
[<c0102a39>] sysenter_past_esp+0x52/0x75
next prev parent reply other threads:[~2005-02-11 15:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 20:54 Parag Warudkar
2005-01-30 21:17 ` Andrew Morton
2005-01-30 22:49 ` Parag Warudkar
2005-01-30 23:02 ` Andrew Morton
2005-01-31 1:19 ` Parag Warudkar
2005-01-31 23:26 ` Parag Warudkar
2005-02-11 15:35 ` Dan Dennedy [this message]
2005-02-11 18:43 ` Jody McIntyre
2005-02-12 3:54 ` Parag Warudkar
2005-02-18 15:32 ` Dan Dennedy
2005-02-18 15:42 ` Parag Warudkar
2005-02-19 6:36 ` Jody McIntyre
2005-02-19 15:06 ` Parag Warudkar
2005-02-19 19:36 David Brownell
2005-02-19 20:50 ` Parag Warudkar
2005-02-19 21:13 ` David Brownell
2005-02-19 22:55 ` Jody McIntyre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1108136133.4149.3.camel@kino.dennedy.org \
--to=dan@dennedy.org \
--cc=akpm@osdl.org \
--cc=kernel-stuff@comcast.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®