All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Zhikun Wang <raidwang@gmail.com>
Cc: Neil Brown <neilb@suse.de>,
	linux-raid <linux-raid@vger.kernel.org>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	Eric Moore <Eric.Moore@lsil.com>
Subject: Re: might_sleep warnings in gereric_make_request
Date: Wed, 19 Apr 2006 21:31:08 -0600	[thread overview]
Message-ID: <20060420033108.GO24104@parisc-linux.org> (raw)
In-Reply-To: <200604201105448287687@gmail.com>

On Thu, Apr 20, 2006 at 11:05:55AM +0800, Zhikun Wang wrote:
> Hi:
> 	I want to call genric_make_request in bio->bi_end_io function. But it incurs might_sleep warnings! I wonder this method is safe in the kernel? Thanks a lot! 
> 
> 
> cfq: depth 4 reached, tagging now on
> Debug: sleeping function called from invalid context at drivers/block/ll_rw_blk.c:2878
> in_atomic():1, irqs_disabled():0

You can't call generic_make_request() from interrupt context.  What are
you trying to do?

  reply	other threads:[~2006-04-20  3:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20  3:05 might_sleep warnings in gereric_make_request Zhikun Wang
2006-04-20  3:31 ` Matthew Wilcox [this message]
     [not found]   ` <200604201142426250967@gmail.com>
2006-04-20  3:47     ` Matthew Wilcox

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=20060420033108.GO24104@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=Eric.Moore@lsil.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=raidwang@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.