]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/rds/iw_send.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[karo-tx-linux.git] / net / rds / iw_send.c
index 545d8ee3efb19b9295f812c0b382efe9cdd6b572..e40c3c5db2c41e543abed12149c791fa9edd2ec6 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 "iw.h"
@@ -258,8 +259,7 @@ void rds_iw_send_cq_comp_handler(struct ib_cq *cq, void *context)
                                 * when the SEND completes. */
                                break;
                        default:
-                               if (printk_ratelimit())
-                                       printk(KERN_NOTICE
+                               printk_ratelimited(KERN_NOTICE
                                                "RDS/IW: %s: unexpected opcode 0x%x in WR!\n",
                                                __func__, send->s_wr.opcode);
                                break;