aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2005-11-09 00:39:43 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:40 -0500
commit787453c2397edcc3261efebb661739acd8c38547 (patch)
tree41855815ebfb6332485ac1ca30b43308c66da0e0 /include
parentfd9d49cac46f5758d513ccf831b599dd4412546f (diff)
[PATCH] md: complete conversion of md to use kthreads
There are a few loose ends following the conversion of md to use kthreads: - Some fields in mdk_thread_t that aren't needed (kthreads does it's own completion and manages it's own name). - thread->run is now never NULL, so no need to check - Some tests for signal_pending that aren't needed (As we don't use signals to stop threads any more) - Some flush_signals are not needed - Some waits are interruptible and don't need to be. 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')
-rw-r--r--include/linux/raid/md_k.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h
index d5854c2b2721..46629a275ba9 100644
--- a/include/linux/raid/md_k.h
+++ b/include/linux/raid/md_k.h
@@ -334,10 +334,8 @@ typedef struct mdk_thread_s {
334 mddev_t *mddev; 334 mddev_t *mddev;
335 wait_queue_head_t wqueue; 335 wait_queue_head_t wqueue;
336 unsigned long flags; 336 unsigned long flags;
337 struct completion *event;
338 struct task_struct *tsk; 337 struct task_struct *tsk;
339 unsigned long timeout; 338 unsigned long timeout;
340 const char *name;
341} mdk_thread_t; 339} mdk_thread_t;
342 340
343#define THREAD_WAKEUP 0 341#define THREAD_WAKEUP 0