svcrdma: fix printk when memory allocation fails
It retries in 1s, not 1000 jiffies. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
9f67f18993
commit
c42a01eee7
@ -477,8 +477,7 @@ struct page *svc_rdma_get_page(void)
|
|||||||
|
|
||||||
while ((page = alloc_page(GFP_KERNEL)) == NULL) {
|
while ((page = alloc_page(GFP_KERNEL)) == NULL) {
|
||||||
/* If we can't get memory, wait a bit and try again */
|
/* If we can't get memory, wait a bit and try again */
|
||||||
printk(KERN_INFO "svcrdma: out of memory...retrying in 1000 "
|
printk(KERN_INFO "svcrdma: out of memory...retrying in 1s\n");
|
||||||
"jiffies.\n");
|
|
||||||
schedule_timeout_uninterruptible(msecs_to_jiffies(1000));
|
schedule_timeout_uninterruptible(msecs_to_jiffies(1000));
|
||||||
}
|
}
|
||||||
return page;
|
return page;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user