diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-06-18 04:17:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-18 04:17:56 -0700 |
| commit | 7444c7185d2d8735a7f9d7db1e73523577365dc0 (patch) | |
| tree | 92177786c54db5f15dbe080aab772270e70b1b70 /include/linux/raid/md.h | |
| parent | f7bbc7e12d9d3a5799f2dd551323f23be682dfd9 (diff) | |
[PATCH] md 21 of 22 - Improve handling of MD super blocks
1/ don't free the rdev->sb on an error -- it might be
accessed again later. Just wait for the device to be
exported.
2/ Change md_update_sb to __md_update_sb and have it
clear the sb_dirty flag.
New md_update_sb locks the device and calls __md_update_sb
if sb_dirty. This avoids any possbile races around
updating the superblock
Diffstat (limited to 'include/linux/raid/md.h')
| -rw-r--r-- | include/linux/raid/md.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h index 5d450aaf13d1..adcff3f86295 100644 --- a/include/linux/raid/md.h +++ b/include/linux/raid/md.h @@ -75,7 +75,7 @@ extern mdk_thread_t * md_register_thread (void (*run) (void *data), extern void md_unregister_thread (mdk_thread_t *thread); extern void md_wakeup_thread(mdk_thread_t *thread); extern void md_interrupt_thread (mdk_thread_t *thread); -extern int md_update_sb (mddev_t *mddev); +extern void md_update_sb (mddev_t *mddev); extern int md_do_sync(mddev_t *mddev, mdp_disk_t *spare); extern void md_done_sync(mddev_t *mddev, int blocks, int ok); extern void md_sync_acct(kdev_t dev, unsigned long nr_sectors); |
