Skip to contentSkip to conversation

Please revert 5b479c91da90eef605f851508744bfe8269591a0 (md partition rescan)

DISCUSSION Neil Brown 7 participants 7 messages May 10, 2007 – May 11, 2007 MD RAID

lore
Share & tools
lore

Neil Brown

author
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Neil Brown

Hi Linus,
Could you please revert

    5b479c91da90eef605f851508744bfe8269591a0

Done.

(But Andrew never saw your email, I suspect: "[email protected]" is probably some strange mixup of Andrew Morton and Andi Kleen in your mind ;)

Linus

#2 lore raw
Quoted 3 lines · Linus Torvalds

(But Andrew never saw your email, I suspect: "[email protected]" is probably some strange mixup of Andrew Morton and Andi Kleen in your mind ;)

What do the letters kp stand for?

Jan

#3 lore raw
Quoted 5 lines · Jan Engelhardt
Quoted 1 line

(But Andrew never saw your email, I suspect: "[email protected]" is

probably

Quoted 1 line

some strange mixup of Andrew Morton and Andi Kleen in your mind ;)

What do the letters kp stand for?

"Keep Patching" ?

#4 lore raw
Quoted 6 lines · Xavier Bestel
Quoted 5 lines · Jan Engelhardt
Quoted 1 line

(But Andrew never saw your email, I suspect: "[email protected]" is

probably

Quoted 1 line

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

Quoted 1 line

"Keep Patching" ?

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

#5 lore raw
Quoted 8 lines · Satyam Sharma
Quoted 6 lines · Xavier Bestel
Quoted 5 lines · Jan Engelhardt
Quoted 1 line

(But Andrew never saw your email, I suspect: "[email protected]" is

probably

Quoted 1 line

some strange mixup of Andrew Morton and Andi Kleen in your mind ;)

What do the letters kp stand for?

Quoted 7 lines

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

Quoted 1 line

"Keep Patching" ?

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

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

-hpa

#6 lore raw
In reply to Jan Engelhardt
Quoted 7 lines · On Thu, 10 May 2007 16:51:31 +0200 (MEST) Jan Engelhardt…
Quoted 3 lines · Linus Torvalds

(But Andrew never saw your email, I suspect: "[email protected]" 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".