|
Small fix for 2.4 md.c - using device information before lock_dev(): msg#00053linux.raid
Good morning, I've been testing md under UML. It appears that UML is exposing a minor bug in md.c: it is trying to use information about the device (in particular, blk_sizes[]) before having imported it (which calls lock_dev() and thus makes the information available in the first place). This was exposed because UML resets the blk_sizes[] information to zero on ubd_release(). Working patch attached; it just reorders the function calls. Please apply to 2.4 if appropriate. Sincerely, Lars Marowsky-Brée <lmb@xxxxxxx> -- Principal Squirrel SuSE Labs - Research & Development, SuSE Linux AG "If anything can go wrong, it will." "Chance favors the prepared (mind)." -- Capt. Edward A. Murphy -- Louis Pasteur
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [PATCH] md - 12 of 12 - Add new superblock format for md: 00053, NeilBrown |
|---|---|
| Next by Date: | Re: [PATCH] md - 1 of 12 - Missing mddev_put in md resync code: 00053, Sean Kormilo |
| Previous by Thread: | [PATCH] md - 12 of 12 - Add new superblock format for mdi: 00053, NeilBrown |
| Next by Thread: | Re: Small fix for 2.4 md.c - using device information before lock_dev(): 00053, Neil Brown |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |