diff options
author | NeilBrown <neilb@suse.de> | 2006-06-26 03:27:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:38 -0400 |
commit | 0b79ccf0cdd9f59e5f99017e1a5d23da336544b2 (patch) | |
tree | 8688d9810fcba1e24abce726eaf35ff32f6b58d9 /include/linux/raid/bitmap.h | |
parent | d7375ab324971e7acbea9f02a0269ae7348f4147 (diff) |
[PATCH] md/bitmap: remove bitmap writeback daemon
md/bitmap currently has a separate thread to wait for writes to the bitmap
file to complete (as we cannot get a callback on that action).
However this isn't needed as bitmap_unplug is called from process context and
waits for the writeback thread to do it's work. The same result can be
achieved by doing the waiting directly in bitmap_unplug.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/bitmap.h')
-rw-r--r-- | include/linux/raid/bitmap.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/raid/bitmap.h b/include/linux/raid/bitmap.h index 899437802aea..9c8907ca60a7 100644 --- a/include/linux/raid/bitmap.h +++ b/include/linux/raid/bitmap.h | |||
@@ -244,13 +244,7 @@ struct bitmap { | |||
244 | unsigned long daemon_lastrun; /* jiffies of last run */ | 244 | unsigned long daemon_lastrun; /* jiffies of last run */ |
245 | unsigned long daemon_sleep; /* how many seconds between updates? */ | 245 | unsigned long daemon_sleep; /* how many seconds between updates? */ |
246 | 246 | ||
247 | /* | ||
248 | * bitmap_writeback_daemon waits for file-pages that have been written, | ||
249 | * as there is no way to get a call-back when a page write completes. | ||
250 | */ | ||
251 | mdk_thread_t *writeback_daemon; | ||
252 | spinlock_t write_lock; | 247 | spinlock_t write_lock; |
253 | wait_queue_head_t write_wait; | ||
254 | struct list_head complete_pages; | 248 | struct list_head complete_pages; |
255 | mempool_t *write_pool; | 249 | mempool_t *write_pool; |
256 | }; | 250 | }; |