From: Neil Brown <neilb-l3A5Bk7waGM@public.gmane.org>
To: David Greaves <david-FQ/kcb21CSxWk0Htik3J/w@public.gmane.org>
Cc: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
Linux Kernel Mailing List
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Kernel Testers List
<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [Bug #11460] 2.6.27-rc3 to -rc4 regression: init 0 hangs in halt
Date: Mon, 1 Sep 2008 12:54:57 +1000 [thread overview]
Message-ID: <18619.22913.1452.426243@notabene.brown> (raw)
In-Reply-To: message from David Greaves on Saturday August 30
On Saturday August 30, david-FQ/kcb21CSxWk0Htik3J/w@public.gmane.org wrote:
> Rafael J. Wysocki wrote:
> > This message has been generated automatically as a part of a report
> > of recent regressions.
> >
> > The following bug entry is on the current list of known regressions
> > from 2.6.26. Please verify if it still should be listed and let me know
> > (either way).
> >
> >
> > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=11460
> > Subject : 2.6.27-rc3 to -rc4 regression: init 0 hangs in halt
> > Submitter : David Greaves <david-FQ/kcb21CSxWk0Htik3J/w@public.gmane.org>
> > Date : 2008-08-30 04:07 (1 days old)
>
> Yes.
>
> I'm trying to bisect it but came across a bug/problem in git doing bisects.
> (see message subject "setlocalversion wasn't producing git labels for bisect")
Hi David.
Could you please try this patch?
Thanks,
NeilBrown
From 271f5a9b8f8ae0db95de72779d115c9d0b9d3cc5 Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb-l3A5Bk7waGM@public.gmane.org>
Date: Mon, 1 Sep 2008 12:32:52 +1000
Subject: [PATCH] Remove invalidate_partition call from do_md_stop.
When stopping an md array, or just switching to read-only, we
currently call invalidate_partition while holding the mddev lock.
The main reason for this is probably to ensure all dirty buffers
are flushed (invalidate_partition calls fsync_bdev).
However if any dirty buffers are found, it will almost certainly cause
a deadlock as starting writeout will require an update to the
superblock, and performing that updates requires taking the mddev
lock - which is already held.
This deadlock can be demonstrated by running "reboot -f -n" with
a root filesystem on md/raid, and some dirty buffers in memory.
All other calls to stop an array should already happen after a flush.
The normal sequence is to stop using the array (e.g. umount) which
will cause __blkdev_put to call sync_blockdev. Then open the
array and issue the STOP_ARRAY ioctl while the buffers are all still
clean.
So this invalidate_partition is normally a no-op, except for one case
where it will cause a deadlock.
So remove it.
This patch possibly addresses the regression recored in
http://bugzilla.kernel.org/show_bug.cgi?id=11460
and
http://bugzilla.kernel.org/show_bug.cgi?id=11452
though it isn't yet clear how it ever worked.
Signed-off-by: NeilBrown <neilb-l3A5Bk7waGM@public.gmane.org>
---
drivers/md/md.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 8cfadc5..4790c83 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3841,8 +3841,6 @@ static int do_md_stop(mddev_t * mddev, int mode, int is_open)
del_timer_sync(&mddev->safemode_timer);
- invalidate_partition(disk, 0);
-
switch(mode) {
case 1: /* readonly */
err = -ENXIO;
--
1.5.6.5
WARNING: multiple messages have this Message-ID (diff)
From: Neil Brown <neilb@suse.de>
To: David Greaves <david@dgreaves.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Kernel Testers List <kernel-testers@vger.kernel.org>
Subject: Re: [Bug #11460] 2.6.27-rc3 to -rc4 regression: init 0 hangs in halt
Date: Mon, 1 Sep 2008 12:54:57 +1000 [thread overview]
Message-ID: <18619.22913.1452.426243@notabene.brown> (raw)
In-Reply-To: message from David Greaves on Saturday August 30
On Saturday August 30, david@dgreaves.com wrote:
> Rafael J. Wysocki wrote:
> > This message has been generated automatically as a part of a report
> > of recent regressions.
> >
> > The following bug entry is on the current list of known regressions
> > from 2.6.26. Please verify if it still should be listed and let me know
> > (either way).
> >
> >
> > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=11460
> > Subject : 2.6.27-rc3 to -rc4 regression: init 0 hangs in halt
> > Submitter : David Greaves <david@dgreaves.com>
> > Date : 2008-08-30 04:07 (1 days old)
>
> Yes.
>
> I'm trying to bisect it but came across a bug/problem in git doing bisects.
> (see message subject "setlocalversion wasn't producing git labels for bisect")
Hi David.
Could you please try this patch?
Thanks,
NeilBrown
>From 271f5a9b8f8ae0db95de72779d115c9d0b9d3cc5 Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb@suse.de>
Date: Mon, 1 Sep 2008 12:32:52 +1000
Subject: [PATCH] Remove invalidate_partition call from do_md_stop.
When stopping an md array, or just switching to read-only, we
currently call invalidate_partition while holding the mddev lock.
The main reason for this is probably to ensure all dirty buffers
are flushed (invalidate_partition calls fsync_bdev).
However if any dirty buffers are found, it will almost certainly cause
a deadlock as starting writeout will require an update to the
superblock, and performing that updates requires taking the mddev
lock - which is already held.
This deadlock can be demonstrated by running "reboot -f -n" with
a root filesystem on md/raid, and some dirty buffers in memory.
All other calls to stop an array should already happen after a flush.
The normal sequence is to stop using the array (e.g. umount) which
will cause __blkdev_put to call sync_blockdev. Then open the
array and issue the STOP_ARRAY ioctl while the buffers are all still
clean.
So this invalidate_partition is normally a no-op, except for one case
where it will cause a deadlock.
So remove it.
This patch possibly addresses the regression recored in
http://bugzilla.kernel.org/show_bug.cgi?id=11460
and
http://bugzilla.kernel.org/show_bug.cgi?id=11452
though it isn't yet clear how it ever worked.
Signed-off-by: NeilBrown <neilb@suse.de>
---
drivers/md/md.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 8cfadc5..4790c83 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3841,8 +3841,6 @@ static int do_md_stop(mddev_t * mddev, int mode, int is_open)
del_timer_sync(&mddev->safemode_timer);
- invalidate_partition(disk, 0);
-
switch(mode) {
case 1: /* readonly */
err = -ENXIO;
--
1.5.6.5
next prev parent reply other threads:[~2008-09-01 2:54 UTC|newest]
Thread overview: 166+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 19:46 2.6.27-rc5-git2: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-08-30 19:46 ` Rafael J. Wysocki
2008-08-30 19:46 ` [Bug #11141] no battery or DC status - Dell i1501 Rafael J. Wysocki
2008-08-30 19:46 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11207] VolanoMark regression with 2.6.27-rc1 Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11209] 2.6.27-rc1 process time accounting Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11191] 2.6.26-git8: spinlock lockup in c1e_idle() Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-09-01 20:46 ` Mikhail Kshevetskiy
2008-09-01 20:46 ` Mikhail Kshevetskiy
[not found] ` <20080902004624.61f39cfe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-09-01 21:20 ` Thomas Gleixner
2008-09-01 21:20 ` Thomas Gleixner
2008-08-30 19:50 ` [Bug #11220] Screen stays black after resume Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11230] Kconfig no longer outputs a .config with freshly updated defconfigs Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11224] Only three cores found on quad-core machine Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11215] INFO: possible recursive locking detected ps2_command Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11210] libata badness Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11264] Invalid op opcode in kernel/workqueue Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11271] BUG: fealnx in 2.6.27-rc1 Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-09-01 17:02 ` Jaswinder Singh
2008-09-01 17:02 ` Jaswinder Singh
[not found] ` <3f9a31f40809011002k572450ffg90654912f3e1fa2a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-09-01 17:06 ` Arjan van de Ven
2008-09-01 17:06 ` Arjan van de Ven
[not found] ` <20080901100649.59c1ab1f-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2008-09-01 17:27 ` Jaswinder Singh
2008-09-01 17:27 ` Jaswinder Singh
[not found] ` <3f9a31f40809011027o34dbfccfh9ed82228938cb572-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-09-01 21:18 ` Francois Romieu
2008-09-01 21:18 ` Francois Romieu
2008-08-30 19:50 ` [Bug #11237] corrupt PMD after resume Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 21:49 ` Alan Jenkins
2008-08-30 21:49 ` Alan Jenkins
[not found] ` <48B9C052.8090404-cCz0Lq7MMjm9FHfhHBbuYA@public.gmane.org>
2008-08-30 22:04 ` Rafael J. Wysocki
2008-08-30 22:04 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11279] 2.6.27-rc0 Power Bugs with HP/Compaq Laptops Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11272] BUG: parport_serial in 2.6.27-rc1 for NetMos Technology PCI 9835 Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11276] build error: CONFIG_OPTIMIZE_INLINING=y causes gcc 4.2 to do stupid things Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11334] myri10ge: use ioremap_wc: compilation failure on ARM Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-31 7:38 ` Martin Michlmayr
2008-08-31 7:38 ` Martin Michlmayr
2008-08-30 19:50 ` [Bug #11335] 2.6.27-rc2-git5 BUG: unable to handle kernel paging request Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11308] tbench regression on each kernel release from 2.6.22 -> 2.6.28 Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11336] 2.6.27-rc2:stall while mounting root fs Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11340] LTP overnight run resulted in unusable box Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11357] Can not boot up with zd1211rw USB-Wlan Stick Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-31 16:30 ` John W. Linville
[not found] ` <20080831163015.GA2929-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2008-08-31 19:47 ` Rafael J. Wysocki
2008-08-31 19:47 ` Rafael J. Wysocki
[not found] ` <200808312147.02824.rjw-KKrjLPT3xs0@public.gmane.org>
2008-09-20 14:05 ` Steven Rostedt
2008-09-20 14:05 ` Steven Rostedt
2008-08-30 19:50 ` [Bug #11343] SATA Cold Boot Problems with 2.6.27-rc[23] on nVidia 680i Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11355] Regression in 2.6.27-rc2 when cross-building the kernel Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 21:34 ` Larry Finger
2008-08-30 21:34 ` Larry Finger
2008-08-30 19:50 ` [Bug #11358] net: forcedeth call restore mac addr in nv_shutdown path Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-31 8:41 ` Tobias Diedrich
2008-08-31 8:41 ` Tobias Diedrich
[not found] ` <20080831084135.GA2698-LEnv4NkkRI/kz0gr9c1H3IV7twrRs5iQ@public.gmane.org>
2008-08-31 13:09 ` Tobias Diedrich
2008-08-31 13:09 ` Tobias Diedrich
[not found] ` <20080831130904.GA4070-LEnv4NkkRI/kz0gr9c1H3IV7twrRs5iQ@public.gmane.org>
2008-08-31 18:02 ` Yinghai Lu
2008-08-31 18:02 ` Yinghai Lu
2008-08-30 19:50 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11361] my servers with nvidia mcp55 nic don't work with msi in second kernel by kexec Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11388] 2.6.27-rc3 warns about MTRR range; only 3 of 16gb of memory is usable Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 21:29 ` Yinghai Lu
2008-08-30 21:29 ` Yinghai Lu
[not found] ` <86802c440808301429u2a719571raf0d8001a89a1388-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-08-30 21:39 ` Rafael J. Wysocki
2008-08-30 21:39 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11398] hda_intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-31 10:39 ` Frans Pop
2008-08-31 10:39 ` Frans Pop
2008-08-30 19:50 ` [Bug #11382] e1000e: 2.6.27-rc1 corrupts EEPROM/NVM Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11404] BUG: in 2.6.23-rc3-git7 in do_cciss_intr Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-09-04 18:47 ` Randy Dunlap
2008-09-04 18:47 ` Randy Dunlap
2008-08-30 19:50 ` [Bug #11409] build issue #564 for v2.6.27-rc4 : undefined reference to `NS8390p_init' Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11407] suspend: unable to handle kernel paging request Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11403] 2.6.27-rc2 USB suspend regression Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11410] SLUB list_lock vs obj_hash.lock Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11435] oops due to smp_call_function_single changes Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11438] Upcoming oops in lockdep Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 21:36 ` Peter Zijlstra
2008-08-30 21:36 ` Peter Zijlstra
2008-09-01 4:01 ` Arjan van de Ven
2008-09-01 4:01 ` Arjan van de Ven
[not found] ` <20080831210115.4fdff99f-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2008-09-01 11:48 ` Rafael J. Wysocki
2008-09-01 11:48 ` Rafael J. Wysocki
[not found] ` <200809011348.29917.rjw-KKrjLPT3xs0@public.gmane.org>
2008-09-01 14:48 ` Arjan van de Ven
2008-09-01 14:48 ` Arjan van de Ven
2008-08-30 19:50 ` [Bug #11439] [2.6.27-rc4-git4] compilation warnings Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11441] lots of 'in_atomic():1, irqs_disabled():0' with software-raid1 Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-09-03 19:44 ` thunder7-qWit8jRvyhVmR6Xm/wNWPw
2008-09-03 19:44 ` thunder7
[not found] ` <20080903194417.GA4937-9lYvA+wzQ+BL6ehbpA6KYA@public.gmane.org>
2008-09-03 20:00 ` Rafael J. Wysocki
2008-09-03 20:00 ` Rafael J. Wysocki
2008-09-04 5:01 ` Neil Brown
2008-09-04 5:01 ` Neil Brown
2008-08-30 19:50 ` [Bug #11451] /proc/acpi/ibm/wan stopped appearing Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11442] btusb hibernation/suspend breakage in current -git Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11452] md (regression): reboot/shutdown hangs Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11460] 2.6.27-rc3 to -rc4 regression: init 0 hangs in halt Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 22:20 ` David Greaves
2008-08-30 22:20 ` David Greaves
2008-09-01 2:54 ` Neil Brown [this message]
2008-09-01 2:54 ` Neil Brown
2008-09-01 9:23 ` David Greaves
2008-08-30 19:50 ` [Bug #11459] kernel crash after wifi connection established Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11461] build breakage Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11462] v2.6.27-rc5 regression: mtd/block device issue with cmd_filter Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11464] BUG: kernel-2.6.27-rc5: soft lockup - CPU#X stuck for 61s! Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-31 2:27 ` Herton Ronaldo Krzesinski
2008-08-31 2:27 ` Herton Ronaldo Krzesinski
[not found] ` <200808302327.09332.herton-4qZELD6Fgxg39yzSjRtAkw@public.gmane.org>
2008-08-31 11:56 ` Rafael J. Wysocki
2008-08-31 11:56 ` Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11465] Linux-2.6.27-rc5, drm errors in log Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-31 1:21 ` Gene Heskett
2008-08-31 1:21 ` Gene Heskett
2008-08-30 19:50 ` [Bug #11463] sshd hangs on close Rafael J. Wysocki
2008-08-30 19:50 ` Rafael J. Wysocki
2008-08-30 21:32 ` 2.6.27-rc5-git2: Reported regressions from 2.6.26 David Miller
2008-08-30 21:32 ` David Miller
[not found] ` <20080830.143256.62760515.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-08-30 21:42 ` Rafael J. Wysocki
2008-08-30 21:42 ` Rafael J. Wysocki
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=18619.22913.1452.426243@notabene.brown \
--to=neilb-l3a5bk7wagm@public.gmane.org \
--cc=david-FQ/kcb21CSxWk0Htik3J/w@public.gmane.org \
--cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
/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.