[PVFS-developers] kpvfsd.c fixes for Redhat 9 kernels

Rob Ross rross@mcs.anl.gov
Thu, 16 Oct 2003 14:30:41 -0500 (CDT)


What kernel is that?

I can't tell you how angry it makes me that they change internal 
structures of the kernel in the "stable" series (assuming that's 2.4).

Thanks for the report; it's certainly not your fault!

Rob

On Thu, 16 Oct 2003, Richard Jones wrote:

> This may be a redundant posting, but I was not able to find a fix to v1.6.0 
> kpvfsd.c that would allow it to build under gcc-3.2 and the redhat 9 kernel.
> Specifically, there were changes in the structures and function defs in sched.h 
> of the kernel tree.
> 
> cheers,
> Richard Jones
> Physics, UConn
> 
> 
> --- /old/pvfs-kernel-1.6.0-linux-2.4/kpvfsd.c	Thu Oct 16 15:13:43 2003
> +++ /new/pvfs-kernel-1.6.0-linux-2.4/kpvfsd.c	Thu Oct 16 15:13:18 2003
> @@ -41,7 +41,7 @@
>   pid_t name2pid(char *name)
>   {
>   	struct task_struct *p = NULL;
> -	for_each_task(p) {
> +	for_each_process(p) {
>   		if(strcmp(p->comm,name) == 0) {
>   			return p->pid;
>   		}
> @@ -260,10 +260,10 @@
>   	 daemonize();
>   #endif
>   #endif
> -	 spin_lock_irq(&current->sigmask_lock);
> +	 spin_lock_irq(&current->sighand->siglock);
>   	 siginitsetinv(&current->blocked, sigmask(SIGKILL) | sigmask(SIGTERM));
> -	 recalc_sigpending(current);
> -	 spin_unlock_irq(&current->sigmask_lock);
> +	 recalc_sigpending();
> +	 spin_unlock_irq(&current->sighand->siglock);
>   	 sprintf(current->comm, "kpvfsd-%d",targs->pa_id);
>   	 targs->pa_thread = current;
>   #ifdef NEED_TO_LOCK_KERNEL
> 
> _______________________________________________
> PVFS-developers mailing list
> PVFS-developers@www.beowulf-underground.org
> http://beowulf-underground.org/mailman/listinfo/pvfs-developers
> 
>