]> git.neil.brown.name Git - history.git/commit
[PATCH] Make ITERATE_MDDEV work on non-SMP
authorNeil Brown <neilb@cse.unsw.edu.au>
Thu, 20 Jun 2002 05:23:32 +0000 (22:23 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Jun 2002 05:23:32 +0000 (22:23 -0700)
commitb5c8a738ea1d32552ed055438788ef9791fc3a94
tree48f73a81cfc2644c7f4d51b81a295610295df385
parent6da797898b049606ca6d7ccbf8e7a7609029fcf0
[PATCH] Make ITERATE_MDDEV work on non-SMP

For an SMP kernel, spin_lock() et.al. are functions.
For a UP kernel, they are statements that must be terminated
by a ';'.  This is not quite the same thing, and hence spin_lock()
cannot be using inside a parenthesised expession.

This patch changes ITERATE_MDDEV to use gcc's "statement expressions"
instead which has the benefit of making the conditionals
more readable.
drivers/md/md.c