Project

General

Profile

Actions

Bug #3266

open

Filesystems broken due to "KKASSERT(count & TOK_COUNTMASK);"

Added by tkusumi over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
Start date:
03/15/2021
Due date:
% Done:

0%

Estimated time:

Description

Many fs including HAMMER2 are broken due to this assert failure.
Confirmed the panic with HAMMER2 and ext2.
It didn't happen a few months ago.

433 static __inline
434 void
435 _lwkt_reltokref(lwkt_tokref_t ref, thread_t td)
436 {
...
454 /*
455 * We are a shared holder
456 /
457 count = atomic_fetchadd_long(&tok->t_count, TOK_INCR);
458 KKASSERT; /
count prior */ <----------
459 }
460 }

Actions

Also available in: Atom PDF