Received: with ECARTIS (v1.0.0; list linux-xfs); Thu, 11 Sep 2003 10:26:50 -0700 (PDT) Received: from dmz.tecosim.de (dmz.tecosim.com [195.135.152.162]) by oss.sgi.com (8.12.9/8.12.5) with SMTP id h8BHQhYa009975 for ; Thu, 11 Sep 2003 10:26:44 -0700 Received: from alg-ru.tecosim.de (alg-ru-ext.tecosim.com [195.135.152.146]) by dmz.tecosim.de (Postfix) with ESMTP id 5560E1804D for ; Thu, 11 Sep 2003 19:26:37 +0200 (CEST) Received: from ns.tecosim.de (unknown [10.0.2.1]) by alg-ru.tecosim.de (Postfix) with ESMTP id 119B3180B0 for ; Thu, 11 Sep 2003 19:26:37 +0200 (CEST) Received: from donner.tecosim.de (donner.tecosim.de [10.0.16.1]) by ns.tecosim.de (8.12.8/8.11.6) with ESMTP id h8BHQZ4t015351 for ; Thu, 11 Sep 2003 19:26:36 +0200 Received: by donner.tecosim.de (Postfix, from userid 272) id 93F44877A17; Thu, 11 Sep 2003 19:26:35 +0200 (CEST) Date: Thu, 11 Sep 2003 19:26:35 +0200 From: Utz Lehmann To: linux-xfs@oss.sgi.com Subject: [PATCH] Redhat beta kernel compile fix Message-ID: <20030911172635.GB13348@de.tecosim.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.36 X-archive-position: 385 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: u.lehmann@de.tecosim.com Precedence: bulk X-list: linux-xfs Content-Length: 2589 Lines: 77 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi The redhat 10 beta kernel 2.4.21-20.1.2024.2.1.nptl includes xfs. It come from patch-2.4.22-pre3-ac1.bz2. The redhat default config disable xfs support and it doesnt compile out of the box. I made a patch which make it compile and working under redhat 9 for me. I got the idea for the patch from http://oss.software.ibm.com/pipermail/jfs-discussion/2003-May/001407.html I dont know if it is the right fix. But it survived 1h of fsx and a few FEM analysis jobs on an UP athlon. Maybe it is useful for someone. utz --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="linux-2.4.21-20.1.2024.2.1-xfs-compile.patch" diff -ru linux-2.4.21-20.1.2024.2.1.nptl/fs/xfs/linux/xfs_syncd.c linux-2.4.21-20.1.2024.2.1.nptl_teco1/fs/xfs/linux/xfs_syncd.c --- linux-2.4.21-20.1.2024.2.1.nptl/fs/xfs/linux/xfs_syncd.c 2003-07-11 11:55:23.000000000 +0200 +++ linux-2.4.21-20.1.2024.2.1.nptl_teco1/fs/xfs/linux/xfs_syncd.c 2003-09-09 11:32:08.000000000 +0200 @@ -49,10 +49,10 @@ daemonize(); reparent_to_init(); - spin_lock_irq(¤t->sigmask_lock); + spin_lock_irq(¤t->sighand->siglock); sigfillset(¤t->blocked); - recalc_sigpending(current); - spin_unlock_irq(¤t->sigmask_lock); + recalc_sigpending; + spin_unlock_irq(¤t->sighand->siglock); sprintf(current->comm, "xfs_syncd"); diff -ru linux-2.4.21-20.1.2024.2.1.nptl/fs/xfs/pagebuf/page_buf.c linux-2.4.21-20.1.2024.2.1.nptl_teco1/fs/xfs/pagebuf/page_buf.c --- linux-2.4.21-20.1.2024.2.1.nptl/fs/xfs/pagebuf/page_buf.c 2003-07-11 11:55:23.000000000 +0200 +++ linux-2.4.21-20.1.2024.2.1.nptl_teco1/fs/xfs/pagebuf/page_buf.c 2003-09-09 11:33:26.000000000 +0200 @@ -1920,10 +1920,10 @@ daemonize(); /* Avoid signals */ - spin_lock_irq(¤t->sigmask_lock); + spin_lock_irq(¤t->sighand->siglock); sigfillset(¤t->blocked); - recalc_sigpending(current); - spin_unlock_irq(¤t->sigmask_lock); + recalc_sigpending; + spin_unlock_irq(¤t->sighand->siglock); /* Migrate to the right CPU */ migrate_to_cpu(cpu); @@ -2021,10 +2021,10 @@ daemonize(); /* Avoid signals */ - spin_lock_irq(¤t->sigmask_lock); + spin_lock_irq(¤t->sighand->siglock); sigfillset(¤t->blocked); - recalc_sigpending(current); - spin_unlock_irq(¤t->sigmask_lock); + recalc_sigpending; + spin_unlock_irq(¤t->sighand->siglock); strcpy(current->comm, "pagebufd"); current->flags |= PF_MEMALLOC; --k1lZvvs/B4yU6o8G--