]> git.neil.brown.name Git - history.git/commit
[PATCH] md: Remove per-personality 'operational' and 'write_only' flags
authorNeil Brown <neilb@cse.unsw.edu.au>
Fri, 23 Aug 2002 04:27:25 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 23 Aug 2002 04:27:25 +0000 (21:27 -0700)
commit09b63e46124f134b1982705ca9221c63271df2a7
treeb82065fa78b4b2a0a60762e4f4e6b17e36dde4fc
parent0ce3712f092a9c9f91d58c321ea864c119d13fd4
[PATCH] md: Remove per-personality 'operational' and 'write_only' flags

raid1, raid5 and multipath maintain their own
'operational' flag.  This is equivalent to
   !rdev->faulty
and so isn't needed.
Similarly raid1 and raid1 maintain a "write_only" flag
that is equivalnt to
   !rdev->in_sync
so it isn't needed either.

As part of implementing this change, we introduce some extra
flag bit in raid5 that are meaningful only inside 'handle_stripe'.
Some of these replace the "action" array which recorded what
actions were required (and would be performed after the stripe
spinlock was released).  This has the advantage of reducing our
dependance on MD_SB_DISKS which personalities shouldn't need
to know about.
drivers/md/md.c
drivers/md/multipath.c
drivers/md/raid1.c
drivers/md/raid5.c
include/linux/raid/md.h
include/linux/raid/md_k.h
include/linux/raid/multipath.h
include/linux/raid/raid1.h
include/linux/raid/raid5.h