LKML Archive on
help / color / mirror / Atom feed
From: "Othello Reversi" <>
Subject: Calling add_disk() from a work_queue item
Date: Mon, 6 Aug 2007 02:21:55 +0800	[thread overview]
Message-ID: <> (raw)

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

    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.


PS: Would like to be CC'ed comments and replies.

                 reply	other threads:[~2007-08-05 18:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: Calling add_disk() from a work_queue item' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).