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>
This commit is contained in:
committed by
David S. Miller
parent
d751e62396
commit
cb0a605649
@@ -35,6 +35,7 @@
|
||||
#include <net/sock.h>
|
||||
#include <linux/in.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/ratelimit.h>
|
||||
|
||||
#include "rds.h"
|
||||
|
||||
@@ -1006,16 +1007,14 @@ int rds_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,
|
||||
goto out;
|
||||
|
||||
if (rm->rdma.op_active && !conn->c_trans->xmit_rdma) {
|
||||
if (printk_ratelimit())
|
||||
printk(KERN_NOTICE "rdma_op %p conn xmit_rdma %p\n",
|
||||
printk_ratelimited(KERN_NOTICE "rdma_op %p conn xmit_rdma %p\n",
|
||||
&rm->rdma, conn->c_trans->xmit_rdma);
|
||||
ret = -EOPNOTSUPP;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (rm->atomic.op_active && !conn->c_trans->xmit_atomic) {
|
||||
if (printk_ratelimit())
|
||||
printk(KERN_NOTICE "atomic_op %p conn xmit_atomic %p\n",
|
||||
printk_ratelimited(KERN_NOTICE "atomic_op %p conn xmit_atomic %p\n",
|
||||
&rm->atomic, conn->c_trans->xmit_atomic);
|
||||
ret = -EOPNOTSUPP;
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user