Use pr_err_ratelimited to limit logs that are printed frequently. Change-Id: If16646d244e963300be4cabc4250e9139014b3d6 Signed-off-by: Reut Zysman <[email protected]>
@@ -2569,7 +2569,7 @@ static long process_accept_req(struct file *filp, unsigned int cmd,
* new cb requests.
*/
if (!cb_txn) {
- pr_err("%s txn %d either invalid or removed from Q\n",
+ pr_err_ratelimited("%s txn %d either invalid or removed from Q\n",
__func__, user_args.txn_id);
goto start_waiting_for_requests;
}