brcompat: Print warning when kernel times out waiting for userspace
authorJustin Pettit <jpettit@nicira.com>
Wed, 3 Mar 2010 20:48:15 +0000 (12:48 -0800)
committerJustin Pettit <jpettit@nicira.com>
Wed, 3 Mar 2010 20:51:01 +0000 (12:51 -0800)
datapath/brcompat.c

index 92fcecc216719dce8eb274b96ffb5210c95491ae..b7fb6f8726514b42c2091e930aa3f1c45f2eac24 100644 (file)
@@ -485,8 +485,10 @@ static struct sk_buff *brc_send_command(struct sk_buff *request, struct nlattr *
 
        /* Wait for reply. */
        error = -ETIMEDOUT;
-       if (!wait_for_completion_timeout(&brc_done, BRC_TIMEOUT))
+       if (!wait_for_completion_timeout(&brc_done, BRC_TIMEOUT)) {
+               printk(KERN_WARNING "brcompat: timed out waiting for userspace\n");
                goto error;
+    }
 
        /* Grab reply. */
        spin_lock_irqsave(&brc_lock, flags);