drivers/vmw_vmci: Show correct get_user_pages_fast upon failure
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 17 Feb 2015 22:29:21 +0000 (14:29 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 10:32:15 +0000 (11:32 +0100)
As of 240ddd495a9 (vmw_vmci: Convert driver to use get_user_pages_fast())
we no longer user get_user_pages(), thus update the warning.

Also convert to pr_debug, which is a more appropriate level of logging.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_queue_pair.c

index 35f19a6838222e411e3ab4e427488915a9a841f8..c3849456332eaaa75c28ee6d1778cc1ebf1019c9 100644 (file)
@@ -737,7 +737,8 @@ static int qp_host_get_user_memory(u64 produce_uva,
                                     produce_q->kernel_if->num_pages, 1,
                                     produce_q->kernel_if->u.h.header_page);
        if (retval < produce_q->kernel_if->num_pages) {
-               pr_warn("get_user_pages(produce) failed (retval=%d)", retval);
+               pr_debug("get_user_pages_fast(produce) failed (retval=%d)",
+                       retval);
                qp_release_pages(produce_q->kernel_if->u.h.header_page,
                                 retval, false);
                err = VMCI_ERROR_NO_MEM;
@@ -748,7 +749,8 @@ static int qp_host_get_user_memory(u64 produce_uva,
                                     consume_q->kernel_if->num_pages, 1,
                                     consume_q->kernel_if->u.h.header_page);
        if (retval < consume_q->kernel_if->num_pages) {
-               pr_warn("get_user_pages(consume) failed (retval=%d)", retval);
+               pr_debug("get_user_pages_fast(consume) failed (retval=%d)",
+                       retval);
                qp_release_pages(consume_q->kernel_if->u.h.header_page,
                                 retval, false);
                qp_release_pages(produce_q->kernel_if->u.h.header_page,