diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2007-10-18 06:04:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:20 -0400 |
commit | 6212e3a388fdda3f19fa660ef5a30edf54d1dcfd (patch) | |
tree | 7218bbf29af36ff0c36aa2af8323a5206ea44b1c /include | |
parent | 9cd9a0058dd35268b24fa16795a92c800f4086d4 (diff) |
Remove struct task_struct::io_wait
Hell knows what happened in commit 63b05203af57e7de4f3bb63b8b81d43bc196d32b
during 2.6.9 development. Commit introduced io_wait field which remained
write-only than and still remains write-only.
Also garbage collect macros which "use" io_wait.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/aio.h | 12 | ||||
-rw-r--r-- | include/linux/sched.h | 7 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h index d10e608f232d..7ef8de662001 100644 --- a/include/linux/aio.h +++ b/include/linux/aio.h | |||
@@ -232,18 +232,6 @@ int FASTCALL(io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb, | |||
232 | __put_ioctx(kioctx); \ | 232 | __put_ioctx(kioctx); \ |
233 | } while (0) | 233 | } while (0) |
234 | 234 | ||
235 | #define in_aio() (unlikely(!is_sync_wait(current->io_wait))) | ||
236 | |||
237 | /* may be used for debugging */ | ||
238 | #define warn_if_async() \ | ||
239 | do { \ | ||
240 | if (in_aio()) { \ | ||
241 | printk(KERN_ERR "%s(%s:%d) called in async context!\n", \ | ||
242 | __FUNCTION__, __FILE__, __LINE__); \ | ||
243 | dump_stack(); \ | ||
244 | } \ | ||
245 | } while (0) | ||
246 | |||
247 | #define io_wait_to_kiocb(wait) container_of(wait, struct kiocb, ki_wait) | 235 | #define io_wait_to_kiocb(wait) container_of(wait, struct kiocb, ki_wait) |
248 | 236 | ||
249 | #include <linux/aio_abi.h> | 237 | #include <linux/aio_abi.h> |
diff --git a/include/linux/sched.h b/include/linux/sched.h index c204ab0d4df1..269b234609b8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1110,13 +1110,6 @@ struct task_struct { | |||
1110 | 1110 | ||
1111 | unsigned long ptrace_message; | 1111 | unsigned long ptrace_message; |
1112 | siginfo_t *last_siginfo; /* For ptrace use. */ | 1112 | siginfo_t *last_siginfo; /* For ptrace use. */ |
1113 | /* | ||
1114 | * current io wait handle: wait queue entry to use for io waits | ||
1115 | * If this thread is processing aio, this points at the waitqueue | ||
1116 | * inside the currently handled kiocb. It may be NULL (i.e. default | ||
1117 | * to a stack based synchronous wait) if its doing sync IO. | ||
1118 | */ | ||
1119 | wait_queue_t *io_wait; | ||
1120 | #ifdef CONFIG_TASK_XACCT | 1113 | #ifdef CONFIG_TASK_XACCT |
1121 | /* i/o counters(bytes read/written, #syscalls */ | 1114 | /* i/o counters(bytes read/written, #syscalls */ |
1122 | u64 rchar, wchar, syscr, syscw; | 1115 | u64 rchar, wchar, syscr, syscw; |