Whamcloud - gitweb
b=1933
authorphil <phil>
Fri, 24 Oct 2003 21:50:03 +0000 (21:50 +0000)
committerphil <phil>
Fri, 24 Oct 2003 21:50:03 +0000 (21:50 +0000)
The socknal transmit thread calls into TCP, which will block
allocating memory, and deadlock us if kswapd is waiting on Lustre to
write to OSTs.  Set PF_MEMALLOC on that task.

lnet/klnds/socklnd/socklnd_cb.c
lustre/portals/knals/socknal/socknal_cb.c

index 10520f5..8ce6777 100644 (file)
@@ -1677,6 +1677,8 @@ int ksocknal_scheduler (void *arg)
         kportal_daemonize (name);
         kportal_blockallsigs ();
 
+        current->flags |= PF_MEMALLOC;
+
 #if (CONFIG_SMP && CPU_AFFINITY)
         if ((cpu_online_map & (1 << id)) != 0) {
 #if 1
index 10520f5..8ce6777 100644 (file)
@@ -1677,6 +1677,8 @@ int ksocknal_scheduler (void *arg)
         kportal_daemonize (name);
         kportal_blockallsigs ();
 
+        current->flags |= PF_MEMALLOC;
+
 #if (CONFIG_SMP && CPU_AFFINITY)
         if ((cpu_online_map & (1 << id)) != 0) {
 #if 1