mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 19:12:29 -04:00
s390/qdio: fix statistics for 128 SBALs
Old code would only scan up to 127 SBALs at once. So the last statistics bucket was set aside to count "discovered 127 SBALs with new work" events. But nowadays we allow to scan all 128 SBALs for Output Queues, and a subsequent patch will introduce the same for Input Queues. So fix up the accounting to use the last bucket only when all 128 SBALs have been discovered with new work. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
committed by
Heiko Carstens
parent
7904aaa8b2
commit
529683d470
@@ -165,7 +165,7 @@ static int qstat_show(struct seq_file *m, void *v)
|
||||
}
|
||||
|
||||
seq_printf(m, "\n1 2.. 4.. 8.. "
|
||||
"16.. 32.. 64.. 127\n");
|
||||
"16.. 32.. 64.. 128\n");
|
||||
for (i = 0; i < ARRAY_SIZE(q->q_stats.nr_sbals); i++)
|
||||
seq_printf(m, "%-10u ", q->q_stats.nr_sbals[i]);
|
||||
seq_printf(m, "\nError NOP Total\n%-10u %-10u %-10u\n\n",
|
||||
|
||||
Reference in New Issue
Block a user