Commit 36943fa4 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NLM: nlm_alloc_call should not immediately fail on signal

Currently, nlm_alloc_call tests for a signal before it even tries to
allocate memory.
Fix it so that it tries at least once.

Signed-off-by: default avatarTrond Myklebust <>
parent 47831f35
......@@ -291,14 +291,15 @@ nlmclnt_alloc_call(void)
struct nlm_rqst *call;
while (!signalled()) {
call = (struct nlm_rqst *) kmalloc(sizeof(struct nlm_rqst), GFP_KERNEL);
if (call) {
memset(call, 0, sizeof(*call));
for(;;) {
call = kzalloc(sizeof(*call), GFP_KERNEL);
if (call != NULL) {
return call;
if (signalled())
printk("nlmclnt_alloc_call: failed, waiting for memory\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment