LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Othello Reversi" <othello.reversi@googlemail.com>
To: linux-kernel@vger.kernel.org
Subject: Calling add_disk() from a work_queue item
Date: Mon, 6 Aug 2007 02:21:55 +0800	[thread overview]
Message-ID: <3aadbf9e0708051121m3ce8e044g104f58c17466eb60@mail.gmail.com> (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 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.

                 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:
  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=3aadbf9e0708051121m3ce8e044g104f58c17466eb60@mail.gmail.com \
    --to=othello.reversi@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: Calling add_disk() from a work_queue item' \
    /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

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