So the thread fs has been torn down and so t->fs is null which then triggers the miscounting of n_fs; so I'm sspeculating we may need to try:
while_each_thread(p, t) { if (t->fs == p->fs || !t->fs) n_fs++; }
So the thread fs has been torn down and so t->fs is null which then triggers the miscounting of n_fs; so I'm sspeculating we may need to try:
while_ each_thread( p, t) {
if (t->fs == p->fs || !t->fs)
n_fs++;
}