linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] OLCE Raid5/0 single array for external meta
@ 2011-01-12 13:54 Adam Kwolek
  2011-01-12 13:54 ` [PATCH 1/8] FIX: put update in to queue for local meta update Adam Kwolek
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Adam Kwolek @ 2011-01-12 13:54 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid, dan.j.williams, ed.ciechanowski, wojciech.neubauer

Thank you for review previous OLCE series. 

I've reviewed metadata update method to avoid as you pointed layering violation.

The previous approach was prepared to minimize places to do the same things.
1. one for metadata update via mdmon
2. second for direct metadata update by mdata (no mdmon case)

Current approach, is a try for making one updates processing patch for mdmon and "no mdmon" case.
1. mdmon case:
   a) reshape_super()
           - prepare update
           - append_metadata_update()
           - apply last update in queue (top of '->updates')  using prepare/process update functions
                update is not removed from queue
   b) sync_metadata() to flush update to mdmon

2. no mdmon case
  a) reshape_super()
     Works in the same way as in "mdmon case"
   b) sync_metadata() to flush metadata (already updated) to array
     if there is any update in update queue it is released, it is assumed that only one direct update
     is curently supported.


This mechanism is implemented in patches:
      imsm: FIX: old devices memory has to be released
      imsm: FIX: local mdadm update shouldn't be done in update creation function.
      imsm: FIX: mdadm should process local data
      FIX: put update in to queue for local meta update

The rest are mainly bug fixes.

The one patch "FIX: reload metadata for container operation" needs more comments.
So far I've to reload metadata in reshape_container(), I've learned that you prefer reload metadat on the end of reshape_array().
I think that we should proceed in the same way when reshape_array() is forked externally and code returns to caller.

I'm waiting for your review, meanwhile I'll make some work for next arrays in container reshape

BR
Adam




---

Adam Kwolek (8):
      FIX: reload metadata for container operation
      Finalize reshape after adding disks to array
      imsm: FIX: spares are not counted
      FIX: Cannot load container information
      imsm: FIX: old devices memory has to be released
      imsm: FIX: local mdadm update shouldn't be done in update creation function.
      imsm: FIX: mdadm should process local data
      FIX: put update in to queue for local meta update


 Grow.c        |   28 ++++++++++++++--
 monitor.c     |   11 ++++++
 super-intel.c |  101 ++++++++++++++++++---------------------------------------
 util.c        |   10 +++++-
 4 files changed, 76 insertions(+), 74 deletions(-)

-- 
Signature

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-01-13  9:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 13:54 [PATCH 0/8] OLCE Raid5/0 single array for external meta Adam Kwolek
2011-01-12 13:54 ` [PATCH 1/8] FIX: put update in to queue for local meta update Adam Kwolek
2011-01-12 13:54 ` [PATCH 2/8] imsm: FIX: mdadm should process local data Adam Kwolek
2011-01-13  2:41   ` NeilBrown
2011-01-12 13:54 ` [PATCH 3/8] imsm: FIX: local mdadm update shouldn't be done in update creation function Adam Kwolek
2011-01-13  2:41   ` NeilBrown
2011-01-12 13:54 ` [PATCH 4/8] imsm: FIX: old devices memory has to be released Adam Kwolek
2011-01-13  2:41   ` NeilBrown
2011-01-12 13:55 ` [PATCH 5/8] FIX: Cannot load container information Adam Kwolek
2011-01-13  2:42   ` NeilBrown
2011-01-12 13:55 ` [PATCH 6/8] imsm: FIX: spares are not counted Adam Kwolek
2011-01-13  2:42   ` NeilBrown
2011-01-12 13:55 ` [PATCH 7/8] Finalize reshape after adding disks to array Adam Kwolek
2011-01-13  2:43   ` NeilBrown
2011-01-13  9:25     ` Kwolek, Adam
2011-01-12 13:55 ` [PATCH 8/8] FIX: reload metadata for container operation Adam Kwolek
2011-01-13  2:44   ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).