linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)
@ 2007-05-10  0:37 Neil Brown
  2007-05-10  1:51 ` Linus Torvalds
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Brown @ 2007-05-10  0:37 UTC (permalink / raw)
  To: torvalds; +Cc: akpm, linux-raid, linux-kernel, David Greaves, Doug Ledford


Hi Linus,
 Could you please revert

    5b479c91da90eef605f851508744bfe8269591a0

It causes an oops when auto-detecting raid arrays, and it doesn't seem
easy to fix.
The array may not be 'open' when do_md_run is called, so bdev->bd_disk
might be NULL, so bd_set_size can oops.
I cannot really open the array (blkdev_get) at this point as I
deadlock on mddev->reconfig_mutex.
I could simply guard against bdev->bd_disk being NULL, but that is too
ugly as sometimes the partitions would be found, and sometimes not.

This whole approach of opening an md device before it has been
assembled just seems to get more and more painful.  I think I'm going
to have to come up with something clever to provide both backward
comparability with usage expectation, and sane integration into the
rest of the kernel.
Maybe if you open before the array is assembled you get a completely
different bdev somehow, and on array assembly, a new bdev, or gendisk
or something, gets swapped in so the next open finds it....

Anyway, if that patch can go I'd appreciate it.

Thanks,
NeilBrown

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)
  2007-05-10  0:37 Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan) Neil Brown
@ 2007-05-10  1:51 ` Linus Torvalds
  2007-05-10 14:51   ` Jan Engelhardt
  0 siblings, 1 reply; 7+ messages in thread
From: Linus Torvalds @ 2007-05-10  1:51 UTC (permalink / raw)
  To: Neil Brown
  Cc: Andrew Morton, linux-raid, Linux Kernel Mailing List,
	David Greaves, Doug Ledford



On Thu, 10 May 2007, Neil Brown wrote:
> 
> Hi Linus,
>  Could you please revert
> 
>     5b479c91da90eef605f851508744bfe8269591a0

Done.

(But Andrew never saw your email, I suspect: "akpm@suse.de" is probably 
some strange mixup of Andrew Morton and Andi Kleen in your mind ;)

		Linus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)
  2007-05-10  1:51 ` Linus Torvalds
@ 2007-05-10 14:51   ` Jan Engelhardt
  2007-05-10 14:59     ` Xavier Bestel
  2007-05-10 19:04     ` Andrew Morton
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Engelhardt @ 2007-05-10 14:51 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Neil Brown, Andrew Morton, linux-raid, Linux Kernel Mailing List,
	David Greaves, Doug Ledford


On May 9 2007 18:51, Linus Torvalds wrote:
>
>(But Andrew never saw your email, I suspect: "akpm@suse.de" is probably 
>some strange mixup of Andrew Morton and Andi Kleen in your mind ;)

What do the letters kp stand for?


	Jan
-- 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)
  2007-05-10 14:51   ` Jan Engelhardt
@ 2007-05-10 14:59     ` Xavier Bestel
  2007-05-10 16:48       ` Satyam Sharma
  2007-05-10 19:04     ` Andrew Morton
  1 sibling, 1 reply; 7+ messages in thread
From: Xavier Bestel @ 2007-05-10 14:59 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Linus Torvalds, Neil Brown, Andrew Morton, linux-raid,
	Linux Kernel Mailing List, David Greaves, Doug Ledford

On Thu, 2007-05-10 at 16:51 +0200, Jan Engelhardt wrote:
> >(But Andrew never saw your email, I suspect: "akpm@suse.de" is
> probably 
> >some strange mixup of Andrew Morton and Andi Kleen in your mind ;)
> 
> What do the letters kp stand for?

"Keep Patching" ?




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)
  2007-05-10 14:59     ` Xavier Bestel
@ 2007-05-10 16:48       ` Satyam Sharma
  2007-05-11  0:36         ` H. Peter Anvin
  0 siblings, 1 reply; 7+ messages in thread
From: Satyam Sharma @ 2007-05-10 16:48 UTC (permalink / raw)
  To: Xavier Bestel
  Cc: Jan Engelhardt, Linus Torvalds, Neil Brown, Andrew Morton,
	linux-raid, Linux Kernel Mailing List, David Greaves,
	Doug Ledford

On 5/10/07, Xavier Bestel <xavier.bestel@free.fr> wrote:
> On Thu, 2007-05-10 at 16:51 +0200, Jan Engelhardt wrote:
> > >(But Andrew never saw your email, I suspect: "akpm@suse.de" is
> > probably
> > >some strange mixup of Andrew Morton and Andi Kleen in your mind ;)
> >
> > What do the letters kp stand for?

Heh ... I've always wanted to know that myself. It's funny, no one
seems to have asked that on lkml during all these years (at least none
that a Google search would throw up).

> "Keep Patching" ?

Unlikely. "akpm" seems to be a pre-Linux-kernel nick.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)
  2007-05-10 14:51   ` Jan Engelhardt
  2007-05-10 14:59     ` Xavier Bestel
@ 2007-05-10 19:04     ` Andrew Morton
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2007-05-10 19:04 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: Linus Torvalds, Neil Brown, linux-raid, Linux Kernel Mailing List,
	David Greaves, Doug Ledford

On Thu, 10 May 2007 16:51:31 +0200 (MEST) Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:

> On May 9 2007 18:51, Linus Torvalds wrote:
> >
> >(But Andrew never saw your email, I suspect: "akpm@suse.de" is probably 
> >some strange mixup of Andrew Morton and Andi Kleen in your mind ;)
> 
> What do the letters kp stand for?
> 

Some say "Kernel Programmer".  My parents said "Keith Paul".

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)
  2007-05-10 16:48       ` Satyam Sharma
@ 2007-05-11  0:36         ` H. Peter Anvin
  0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2007-05-11  0:36 UTC (permalink / raw)
  To: Satyam Sharma
  Cc: Xavier Bestel, Jan Engelhardt, Linus Torvalds, Neil Brown,
	Andrew Morton, linux-raid, Linux Kernel Mailing List,
	David Greaves, Doug Ledford

Satyam Sharma wrote:
> On 5/10/07, Xavier Bestel <xavier.bestel@free.fr> wrote:
>> On Thu, 2007-05-10 at 16:51 +0200, Jan Engelhardt wrote:
>> > >(But Andrew never saw your email, I suspect: "akpm@suse.de" is
>> > probably
>> > >some strange mixup of Andrew Morton and Andi Kleen in your mind ;)
>> >
>> > What do the letters kp stand for?
> 
> Heh ... I've always wanted to know that myself. It's funny, no one
> seems to have asked that on lkml during all these years (at least none
> that a Google search would throw up).
> 
>> "Keep Patching" ?
> 
> Unlikely. "akpm" seems to be a pre-Linux-kernel nick.

http://en.wikipedia.org/wiki/Andrew_Morton_%28computer_programmer%29

	-hpa


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-11  0:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10  0:37 Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan) Neil Brown
2007-05-10  1:51 ` Linus Torvalds
2007-05-10 14:51   ` Jan Engelhardt
2007-05-10 14:59     ` Xavier Bestel
2007-05-10 16:48       ` Satyam Sharma
2007-05-11  0:36         ` H. Peter Anvin
2007-05-10 19:04     ` Andrew Morton

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