logo       

Small fix for 2.4 md.c - using device information before lock_dev(): msg#00053

linux.raid

Subject: Small fix for 2.4 md.c - using device information before lock_dev()

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

Attachment: md.c.diff
Description: Text document

Attachment: pgpsfGzJDIRsh.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise