linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: 王志坤 <raidwang@gmail.com>
To: linux-raid <linux-raid@vger.kernel.org>,
	Neil Brown <neilb@cse.unsw.edu.au>
Subject: kernel messages when "rmmod md" module
Date: Wed, 31 May 2006 17:37:44 +0800	[thread overview]
Message-ID: <200605311737409216484@gmail.com> (raw)

hi,
	I build the linux-2.6.11 kernel using the default kernle config file in configs directory and just config "<M> RAID support". When i use "mdadm -S /dev/md0" to stop md, everything is ok! But when i "rmmod md", kernel prints messages as follow.
 
Debug: sleeping function called from invalid context at kernel/workqueue.c:264
in_atomic():1, irqs_disabled():0
 [<c013bbf4>] flush_workqueue+0x1a/0x27
 [<c029ec2f>] blk_cleanup_queue+0x30/0x78
 [<c021eb5d>] kref_put+0x29/0x8c
 [<e11e50d1>] mddev_put+0xad/0x133 [md]
 [<c021df71>] kobject_put+0x1e/0x22
 [<e11ec802>] md_exit+0x1ce/0x2b3 [md]
 [<c014a059>] __try_stop_module+0x27/0x3e
 [<c014a098>] try_stop_module+0x28/0x2d
 [<c014a248>] sys_delete_module+0x13b/0x180
 [<c0108ac4>] do_syscall_trace+0x10b/0x14c
 [<c010384d>] syscall_call+0x7/0xb

    I add some debug message in the md.c and find "md_exit" function calls "mddev_put" function. After "mddev_put" function calls "blk_put_queue(mddev->queue);", the kernel prints message as above.
	I have noticed that "do_md_stop" function calls "mddev->pers->stop(mddev);", and "stop" function has called "blk_sync_queue(mddev->queue);"
 
	Would anybody give me some suggestions? Thanks!


             reply	other threads:[~2006-05-31  9:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-31  9:37 王志坤 [this message]
2006-06-01  2:22 ` kernel messages when "rmmod md" module Neil Brown

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=200605311737409216484@gmail.com \
    --to=raidwang@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /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;
as well as URLs for NNTP newsgroup(s).