]> Pileus Git - ~andy/linux/blobdiff - net/rds/ib_send.c
Merge branch 'gpio-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[~andy/linux] / net / rds / ib_send.c
index 7c4dce8fa5e6b74972f6537ce8507a10bb908e31..e59094981175cd6c390b5ed83a2dec15d8e2407e 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/in.h>
 #include <linux/device.h>
 #include <linux/dmapool.h>
+#include <linux/ratelimit.h>
 
 #include "rds.h"
 #include "ib.h"
@@ -207,8 +208,7 @@ static struct rds_message *rds_ib_send_unmap_op(struct rds_ib_connection *ic,
                }
                break;
        default:
-               if (printk_ratelimit())
-                       printk(KERN_NOTICE
+               printk_ratelimited(KERN_NOTICE
                               "RDS/IB: %s: unexpected opcode 0x%x in WR!\n",
                               __func__, send->s_wr.opcode);
                break;