We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b85299 + 5d04eda commit ca28bbcCopy full SHA for ca28bbc
simrupt.c
@@ -214,7 +214,9 @@ static void process_data(void)
214
WARN_ON_ONCE(!irqs_disabled());
215
216
pr_info("simrupt: [CPU#%d] produce data\n", smp_processor_id());
217
- fast_buf_put(update_simrupt_data());
+ int ret = fast_buf_put(update_simrupt_data());
218
+ if (unlikely(ret < 0) && printk_ratelimit())
219
+ pr_warn("simrupt: fast_buf is full, dropping data\n");
220
221
pr_info("simrupt: [CPU#%d] scheduling tasklet\n", smp_processor_id());
222
tasklet_schedule(&simrupt_tasklet);
0 commit comments