LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Calling add_disk() from a work_queue item
@ 2007-08-05 18:21 Othello Reversi
0 siblings, 0 replies; only message in thread
From: Othello Reversi @ 2007-08-05 18:21 UTC (permalink / raw)
To: linux-kernel
Hi List,
I would like to know why calling add_disk() from a kernel thread
which is running from a work_queue would cause the work item to block
with the "D" (disk wait) state at best under kernel 2.6.17 and cause a
hard-lockup on kernel 2.6.22.1?
If I recall correctly, work items running on the work_queue are
allowed to sleep, and add_disk() is known to sleep. Did I miss out
some details such as a lock I have to acquire?
Hope to hear a reply soon.
Regards,
Othello
PS: Would like to be CC'ed comments and replies.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-05 18:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-05 18:21 Calling add_disk() from a work_queue item Othello Reversi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).