diff options
author | Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de> | 2011-06-15 22:09:57 -0400 |
---|---|---|
committer | David S. Miller <davem@conan.davemloft.net> | 2011-06-17 00:03:03 -0400 |
commit | cb0a60564943db21ed3af975ac3d578cdc80b329 (patch) | |
tree | 207d01d3d6531dde9521abce061a4c48ad1d3690 /net/rds/iw_rdma.c | |
parent | d751e623969bf758f3f75f59418b19ede570ab50 (diff) |
net/rds: use prink_ratelimited() instead of printk_ratelimit()
Since printk_ratelimit() shouldn't be used anymore (see comment in
include/linux/printk.h), replace it with printk_ratelimited()
Signed-off-by: Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
Diffstat (limited to 'net/rds/iw_rdma.c')
-rw-r--r-- | net/rds/iw_rdma.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/rds/iw_rdma.c b/net/rds/iw_rdma.c index 6deaa77495e3..8b77edbab272 100644 --- a/net/rds/iw_rdma.c +++ b/net/rds/iw_rdma.c | |||
@@ -32,6 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | #include <linux/kernel.h> | 33 | #include <linux/kernel.h> |
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <linux/ratelimit.h> | ||
35 | 36 | ||
36 | #include "rds.h" | 37 | #include "rds.h" |
37 | #include "iw.h" | 38 | #include "iw.h" |
@@ -729,8 +730,8 @@ static int rds_iw_rdma_build_fastreg(struct rds_iw_mapping *mapping) | |||
729 | failed_wr = &f_wr; | 730 | failed_wr = &f_wr; |
730 | ret = ib_post_send(ibmr->cm_id->qp, &f_wr, &failed_wr); | 731 | ret = ib_post_send(ibmr->cm_id->qp, &f_wr, &failed_wr); |
731 | BUG_ON(failed_wr != &f_wr); | 732 | BUG_ON(failed_wr != &f_wr); |
732 | if (ret && printk_ratelimit()) | 733 | if (ret) |
733 | printk(KERN_WARNING "RDS/IW: %s:%d ib_post_send returned %d\n", | 734 | printk_ratelimited(KERN_WARNING "RDS/IW: %s:%d ib_post_send returned %d\n", |
734 | __func__, __LINE__, ret); | 735 | __func__, __LINE__, ret); |
735 | return ret; | 736 | return ret; |
736 | } | 737 | } |
@@ -751,8 +752,8 @@ static int rds_iw_rdma_fastreg_inv(struct rds_iw_mr *ibmr) | |||
751 | 752 | ||
752 | failed_wr = &s_wr; | 753 | failed_wr = &s_wr; |
753 | ret = ib_post_send(ibmr->cm_id->qp, &s_wr, &failed_wr); | 754 | ret = ib_post_send(ibmr->cm_id->qp, &s_wr, &failed_wr); |
754 | if (ret && printk_ratelimit()) { | 755 | if (ret) { |
755 | printk(KERN_WARNING "RDS/IW: %s:%d ib_post_send returned %d\n", | 756 | printk_ratelimited(KERN_WARNING "RDS/IW: %s:%d ib_post_send returned %d\n", |
756 | __func__, __LINE__, ret); | 757 | __func__, __LINE__, ret); |
757 | goto out; | 758 | goto out; |
758 | } | 759 | } |