OpenAFS CVS Commit: openafs/src/afs/LINUX by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Sun, 20 Jan 2002 03:41:28 EST


Update of /cvs/openafs/src/afs/LINUX
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-stable-1.2/openafs/src/afs/LINUX

Modified Files:
      Tag: openafs-stable-1_2_x
	osi_alloc.c 
Log Message:
DELTA STABLE12-linux-alloc-avoid-potential-recursion-freeing-memory-and-schedule-when-vmalloc-fails-20020120
AUTHOR bartbanter@hotmail.com

"The first is to change the gfp_mask passed to kmalloc(). Using GFP_KERNEL,
  it is possible that the VM will call back to the filesystem to free up
  memory to satisfy the kmalloc request. GFP_NOFS will prevent this possible
  recursion. I believe GFP_NOFS first appeared in the 2.4.6 kernel.

  The second change involves the call to schedule() when vmalloc() fails. This
  can also cause a hang. The schedule() call could be replaced with:

  set_current_state(TASK_INTERRUPTIBLE);
  schedule_timeout(HZ);"


--- DELTA config for openafs-stable-1_2_x follows ---
STABLE12-linux-alloc-avoid-potential-recursion-freeing-memory-and-schedule-when-vmalloc-fails-20020120 openafs/src/afs/LINUX/osi_alloc.c 1.9 1.9.2.1