Whamcloud - gitweb
b=1933
authorphil <phil>
Sat, 29 Nov 2003 04:28:12 +0000 (04:28 +0000)
committerphil <phil>
Sat, 29 Nov 2003 04:28:12 +0000 (04:28 +0000)
commitfc93afb3c1636562a5c67c781ea968fa10a13371
tree2c49daa57983a99da536cb07b1f11b3b6a88f180
parent73a91231eff171489941d150dd2dd04ae6bc87df
b=1933
The lib_*_alloc functions in portals were calling kmem_cache_alloc(GFP_NOFS)
instead of PORTAL_SLAB_ALLOC, which uses GFP_MEMALLOC. These calls are _more_
likely to return NULL, because they won't use the emergency pool and can't
descend into the file system to free memory.

Unsurprisingly, these lib functions eventually failed to allocate at NCSA, so
this is not just a theoretical risk.
lnet/include/linux/kp30.h
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-p30.h
lustre/portals/include/linux/kp30.h
lustre/portals/include/portals/lib-p30.h