Re: 2.6.3-mm1

From: Sean Neakums
Date: Wed Feb 18 2004 - 07:39:55 EST


Jonathan Brown <jbrown@xxxxxxxxxxxxxxxx> writes:

> When I try to startx with this kernel I get this error:
>
> (EE) RADEON(0): shmat() call retruned errno 1013
>
> No problem with similar .config on 2.6.3. Can post .config if necessary.


I think you need to apply the third patch below, although all three
should probably be applied.


Date: Wed, 18 Feb 2004 01:25:53 -0800
From: Andrew Morton <akpm@xxxxxxxx>
To: linux-kernel@xxxxxxxxxxxxxxx, rusty@xxxxxxxxxxxxxxx
Subject: Re: 2.6.3-mm1
Message-Id: <20040218012553.1228ae34.akpm@xxxxxxxx>

Andrew Morton <akpm@xxxxxxxx> wrote:
>
> Andrew Morton <akpm@xxxxxxxx> wrote:
> >
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.3/2.6.3-mm1/
>
> oops, it appears that rmmod hangs in D state all the time.

Fixes:


kernel/stop_machine.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/stop_machine.c~hotplugcpu-generalise-bogolock-fix-for-kthread-stop-using-signals kernel/stop_machine.c
--- 25/kernel/stop_machine.c~hotplugcpu-generalise-bogolock-fix-for-kthread-stop-using-signals 2004-02-18 01:14:27.000000000 -0800
+++ 25-akpm/kernel/stop_machine.c 2004-02-18 01:14:54.000000000 -0800
@@ -148,7 +148,7 @@ static int do_stop(void *_smdata)
complete(&smdata->done);

/* Wait for kthread_stop */
- while (!signal_pending(current)) {
+ while (!kthread_should_stop()) {
__set_current_state(TASK_INTERRUPTIBLE);
schedule();
}

_


kernel/softirq.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/softirq.c~hotplugcpu-core-fix-for-kthread-stop-using-signals kernel/softirq.c
--- 25/kernel/softirq.c~hotplugcpu-core-fix-for-kthread-stop-using-signals 2004-02-18 01:19:14.000000000 -0800
+++ 25-akpm/kernel/softirq.c 2004-02-18 01:19:29.000000000 -0800
@@ -349,7 +349,7 @@ static int ksoftirqd(void * __bind_cpu)
wait_to_die:
preempt_enable();
/* Wait for kthread_stop */
- while (!signal_pending(current)) {
+ while (!kthread_should_stop()) {
__set_current_state(TASK_INTERRUPTIBLE);
schedule();
}

_


ipc/shm.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN ipc/shm.c~add-syscalls_h-shmat-fix ipc/shm.c
--- 25/ipc/shm.c~add-syscalls_h-shmat-fix 2004-02-18 01:22:41.000000000 -0800
+++ 25-akpm/ipc/shm.c 2004-02-18 01:22:41.000000000 -0800
@@ -635,7 +635,7 @@ out:
* "raddr" thing points to kernel space, and there has to be a wrapper around
* this.
*/
-long sys_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
+asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
{
struct shmid_kernel *shp;
unsigned long addr;

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/