From: adilger Date: Wed, 9 Apr 2003 22:45:53 +0000 (+0000) Subject: Add 2.4.20 UML support to ptlrpc/pinger.c. X-Git-Tag: v1_7_100~1^92~79 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6e7e340e358e0dee96b79b27beed68da1987b2f8;p=fs%2Flustre-release.git Add 2.4.20 UML support to ptlrpc/pinger.c. --- diff --git a/lustre/ptlrpc/pinger.c b/lustre/ptlrpc/pinger.c index a657712..86aeb33 100644 --- a/lustre/ptlrpc/pinger.c +++ b/lustre/ptlrpc/pinger.c @@ -85,10 +85,11 @@ static int ptlrpc_pinger_main(void *arg) spin_unlock_irqrestore(¤t->sigmask_lock, flags); #endif -#ifdef __arch_um__ -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) - sprintf(current->comm, "%s|%d", data->name, current->thread.extern_pid); -#endif +#if defined(__arch_um__) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,20)) + sprintf(current->comm, "%s|%d", data->name,current->thread.extern_pid); +#elif defined(__arch_um__) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) + sprintf(current->comm, "%s|%d", data->name, + current->thread.mode.tt.extern_pid); #else strcpy(current->comm, data->name); #endif