On Wed, Sep 11, 2002 at 08:16:02PM +0200, Christian Guggenberger wrote:
> just tried out 2.4.20-pre5aa2 with xfs enabled as module. But I can't load
> the xfs Module...
> modprobe xfs just won't work. Via top on another console I see two modpobe
> processes, each consuming 99.9% CPU time. Then, after a minute or so, the
> machine reboots...
> System is a Dell Precision with 2 Intel Xeons@xxxxxx and 2GB RDRAM and
> hyper-threading enabled, OS is Debian/GNU Linux 3.0 with:
> gcc-2.95.4 20011002 (Debian prerelease)
> ld-22.214.171.124.1 20020307 Debian/GNU Linux
> I tried to disable HT, but then it was even worse. Then my machine crashed
> hard after starting "modprobe xfs".
Could you please try the following patch from Andrea?
--- 2.4.20pre5aa3/fs/xfs/pagebuf/page_buf.c.~1~ Wed Sep 11 05:17:46 2002
+++ 2.4.20pre5aa3/fs/xfs/pagebuf/page_buf.c Wed Sep 11 06:00:35 2002
@@ -2055,9 +2055,9 @@ pagebuf_iodone_daemon(
/* Migrate to the right CPU */
- current->cpus_allowed = 1UL << cpu;
- while (smp_processor_id() != cpu)
+ set_cpus_allowed(current, 1UL << cpu);
+ if (cpu() != cpu)
sprintf(current->comm, "pagebuf_io_CPU%d", bind_cpu);