svcrdma: fix printk when memory allocation fails
authorJeff Layton <jlayton@redhat.com>
Mon, 10 Mar 2014 15:33:48 +0000 (11:33 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 27 Mar 2014 20:31:56 +0000 (16:31 -0400)
It retries in 1s, not 1000 jiffies.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_transport.c

index 62e4f9b..25688fa 100644 (file)
@@ -477,8 +477,7 @@ struct page *svc_rdma_get_page(void)
 
        while ((page = alloc_page(GFP_KERNEL)) == NULL) {
                /* If we can't get memory, wait a bit and try again */
-               printk(KERN_INFO "svcrdma: out of memory...retrying in 1000 "
-                      "jiffies.\n");
+               printk(KERN_INFO "svcrdma: out of memory...retrying in 1s\n");
                schedule_timeout_uninterruptible(msecs_to_jiffies(1000));
        }
        return page;