mxser: spin_lock() => spin_lock_irq()
On 04/01/2010 05:51 PM, Dan Carpenter wrote: This should be spin_lock_irq() to match the spin_unlock_irq(). Originally it was a lock_kernel() but we switched everything to spin_lock_irq() last November. Signed-off-by: Dan Carpenter<error27(a)gmail.com> diff --git a/drivers/char/mxser.c b/drivers/char... 1 Apr 2010 13:31
[PATCHv5 0/4] tracing: function graph output for preempt/irqs-off tracers
hi, ok, saga continues ;) I'm sending reworked version of the graph output support for preemptirqsoff/preemptoff/irqsoff tracers. v5: - function graph events are back in game - changed function graph tracer interface to be able to pass custom tracer flags - changed calls to trace_function to trace graph... 1 Apr 2010 13:31
[COUNTERPATCH] mm: avoid overflowing preempt_count() in mmu_take_all_locks()
mmu_take_all_locks() takes a spinlock for each vma, which means we increase the preempt count by the number of vmas in an address space. Since the user controls the number of vmas, they can cause preempt_count to overflow. Fix by making mmu_take_all_locks() only disable preemption once by making the spinlocks pr... 1 Apr 2010 13:31
[PATCH 04/14] vc: Locking clean up
The virtual console layer uses the BKL for various things that don't really need it. Clean them out. Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/selection.c | 4 ++++ drivers/char/vt.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/ch... 1 Apr 2010 13:31
cciss: unlock on error path
On Thu, Apr 01, 2010 at 06:54:04PM +0300, Dan Carpenter wrote: We take the spin_lock again in fail_all_cmds() so we need to unlock here. Signed-off-by: Dan Carpenter <error27(a)gmail.com> --- This was found by a static checker and I don't have the hardware myself. Please review carefully. dif... 2 Apr 2010 03:52
KVM MMU: record reverse mapping for spte only if it's writable
On 04/01/2010 11:52 AM, Xiao Guangrong wrote: The read only spte mapping can't hurt shadow page cache, so, no need to record it. We do need to keep track of read-only mappings, that's how swapping works. See commit ca335c8f08d. -- error compiling committee.c: too many arguments to function ... 1 Apr 2010 13:31
[PATCH 12/14] epca: Kill the big kernel lock
The lock is no longer needed for wait until sent paths so this can go Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/epca.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 6f5ffe1..d9df46a 100644 --- a/drivers/ch... 1 Apr 2010 13:30
[PATCH 13/14] specialix; Kill the BKL
Use the port mutex instead Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/specialix.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/char/specialix.c b/drivers/char/specialix.c index 2c24fcd..7be456f 100644 --- a/drivers/char/specialix.c +++ b... 1 Apr 2010 13:30
[PATCH 1/1] oom: fix the unsafe usage of badness() in proc_oom_score()
proc_oom_score(task) have a reference to task_struct, but that is all. If this task was already released before we take tasklist_lock - we can't use task->group_leader, it points to nowhere - it is not safe to call badness() even if this task is ->group_leader, has_intersects_mems_allowed() assumes it ... 1 Apr 2010 13:30
[PATCH 08/14] isicom: kill off the BKL
As with the others we can use the port mutex to get the needed locking properties and fix the race with open. Signed-off-by: Alan Cox <alan(a)linux.intel.com> --- drivers/char/isicom.c | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/char/isicom.c b/drivers/char/is... 1 Apr 2010 13:30