tree:
https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
dev.2020.09.07a
head: cccf684a1da846c3ff830d553bc4cf97bf779f48
commit: cccf684a1da846c3ff830d553bc4cf97bf779f48 [23/23] rcu-tasks: Mass of debug and
fixes
config: x86_64-randconfig-m001-20200911 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
kernel/rcu/rcuscale.c:514 rcu_scale_cleanup() warn: inconsistent indenting
kernel/rcu/tasks.h:1245 show_rcu_tasks_trace_gp_kthread() warn: inconsistent indenting
#
https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/com...
git remote add rcu
https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
git fetch --no-tags rcu dev.2020.09.07a
git checkout cccf684a1da846c3ff830d553bc4cf97bf779f48
vim +514 kernel/rcu/rcuscale.c
504
505 static void
506 rcu_scale_cleanup(void)
507 {
508 int i;
509 int j;
510 int ngps = 0;
511 u64 *wdp;
512 u64 *wdpp;
513
514 /*@@@@*/show_rcu_tasks_gp_kthreads();
515
516 /*
517 * Would like warning at start, but everything is expedited
518 * during the mid-boot phase, so have to wait till the end.
519 */
520 if (rcu_gp_is_expedited() && !rcu_gp_is_normal() && !gp_exp)
521 VERBOSE_SCALEOUT_ERRSTRING("All grace periods expedited, no normal ones to
measure!");
522 if (rcu_gp_is_normal() && gp_exp)
523 VERBOSE_SCALEOUT_ERRSTRING("All grace periods normal, no expedited ones to
measure!");
524 if (gp_exp && gp_async)
525 VERBOSE_SCALEOUT_ERRSTRING("No expedited async GPs, so went with
async!");
526
527 if (torture_cleanup_begin())
528 return;
529 if (!cur_ops) {
530 torture_cleanup_end();
531 return;
532 }
533
534 if (reader_tasks) {
535 for (i = 0; i < nrealreaders; i++)
536 torture_stop_kthread(rcu_scale_reader,
537 reader_tasks[i]);
538 kfree(reader_tasks);
539 }
540
541 if (writer_tasks) {
542 for (i = 0; i < nrealwriters; i++) {
543 torture_stop_kthread(rcu_scale_writer,
544 writer_tasks[i]);
545 if (!writer_n_durations)
546 continue;
547 j = writer_n_durations[i];
548 pr_alert("%s%s writer %d gps: %d\n",
549 scale_type, SCALE_FLAG, i, j);
550 ngps += j;
551 }
552 pr_alert("%s%s start: %llu end: %llu duration: %llu gps: %d batches:
%ld\n",
553 scale_type, SCALE_FLAG,
554 t_rcu_scale_writer_started, t_rcu_scale_writer_finished,
555 t_rcu_scale_writer_finished -
556 t_rcu_scale_writer_started,
557 ngps,
558 rcuscale_seq_diff(b_rcu_gp_test_finished,
559 b_rcu_gp_test_started));
560 for (i = 0; i < nrealwriters; i++) {
561 if (!writer_durations)
562 break;
563 if (!writer_n_durations)
564 continue;
565 wdpp = writer_durations[i];
566 if (!wdpp)
567 continue;
568 for (j = 0; j <= writer_n_durations[i]; j++) {
569 wdp = &wdpp[j];
570 pr_alert("%s%s %4d writer-duration: %5d %llu\n",
571 scale_type, SCALE_FLAG,
572 i, j, *wdp);
573 if (j % 100 == 0)
574 schedule_timeout_uninterruptible(1);
575 }
576 kfree(writer_durations[i]);
577 }
578 kfree(writer_tasks);
579 kfree(writer_durations);
580 kfree(writer_n_durations);
581 }
582
583 /* Do torture-type-specific cleanup operations. */
584 if (cur_ops->cleanup != NULL)
585 cur_ops->cleanup();
586
587 torture_cleanup_end();
588 }
589
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org