diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-07-18 19:08:28 -0700 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2002-07-18 19:08:28 -0700 |
| commit | 6f42312c7cd31635048afa10ad4dbce76a9dbe08 (patch) | |
| tree | bd070eef50dc7059e38cb79f300b6b6bdacf6174 /include | |
| parent | a15b60a21c12a15519d55b772a41d7710e200b49 (diff) | |
[PATCH] MD - Move md_update_sb calls
Move md_update_sb calls
When a change which requires a superblock update happens
at interrupt time, we currently set a flag (sb_dirty) and
wakeup to per-array thread (raid1/raid5d/multipathd) to
do the actual update.
This patch centralises this. The sb_update is now done
by the mdrecoveryd thread. As this is always woken up after
the error handler is called, we don't need the call to wakeup
the local thread any more.
With this, we don't need "md_update_sb" to lock the array
any more and only use __md_update_sb which is local to md.c
So we rename __md_update_sb back to md_update_sb and stop
exporting it.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/raid/md.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h index 280092c6e95b..45aaf76dd768 100644 --- a/include/linux/raid/md.h +++ b/include/linux/raid/md.h @@ -75,7 +75,6 @@ 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 void md_update_sb (mddev_t *mddev); extern void md_done_sync(mddev_t *mddev, int blocks, int ok); extern void md_sync_acct(struct block_device *bdev, unsigned long nr_sectors); extern int md_error (mddev_t *mddev, struct block_device *bdev); |
