diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2012-03-09 08:59:26 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-03-09 11:19:08 -0500 |
commit | 4bcdf1d0b652bc33d52f2322b77463e4dc58abf8 (patch) | |
tree | 2a8ecf0f6ef1d0c85a4553cb1d1c7dc74706488a /include/linux/sched.h | |
parent | 540b60e24f3f4781d80e47122f0c4486a03375b8 (diff) |
genirq: Get rid of unnecessary irqaction field in task_struct
When a new thread handler is created, an irqaction is passed to it as
data. Not only that irqaction is stored in task_struct by the handler
for later use, but also a structure associated with the kernel thread
keeps this value as long as the thread exists.
This fix kicks irqaction out off task_struct. Yes, I introduce new bit
field. But it allows not only to eliminate the duplicate, but also
shortens size of task_struct.
Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Link: http://lkml.kernel.org/r/20120309135925.GB2114@dhcp-26-207.brq.redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 7d379a6bfd88..07f537a371ce 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1319,6 +1319,11 @@ struct task_struct { | |||
1319 | unsigned sched_reset_on_fork:1; | 1319 | unsigned sched_reset_on_fork:1; |
1320 | unsigned sched_contributes_to_load:1; | 1320 | unsigned sched_contributes_to_load:1; |
1321 | 1321 | ||
1322 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
1323 | /* IRQ handler threads */ | ||
1324 | unsigned irq_thread:1; | ||
1325 | #endif | ||
1326 | |||
1322 | pid_t pid; | 1327 | pid_t pid; |
1323 | pid_t tgid; | 1328 | pid_t tgid; |
1324 | 1329 | ||
@@ -1427,11 +1432,6 @@ struct task_struct { | |||
1427 | * mempolicy */ | 1432 | * mempolicy */ |
1428 | spinlock_t alloc_lock; | 1433 | spinlock_t alloc_lock; |
1429 | 1434 | ||
1430 | #ifdef CONFIG_GENERIC_HARDIRQS | ||
1431 | /* IRQ handler threads */ | ||
1432 | struct irqaction *irqaction; | ||
1433 | #endif | ||
1434 | |||
1435 | /* Protection of the PI data structures: */ | 1435 | /* Protection of the PI data structures: */ |
1436 | raw_spinlock_t pi_lock; | 1436 | raw_spinlock_t pi_lock; |
1437 | 1437 | ||