And enable locking assertions for INVARIANTS kernel.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 76580 Build 73463: arc lint + arc unit
Event Timeline
Comment Actions
This looks like it contains other changes from the diff stack. Did you mean to do that?
| sys/sys/buf_ring.h | ||
|---|---|---|
| 364 | There is rwlock_padalign too. | |
| 369 | Wouldn't it be better to add a standalone macro, lock2lock_object() or whatever, to sys/lock.h which maps a lock pointer to its lock object? This is pretty similar to the macro in D59456. I see that some lock types are excluded from this list, but it's not clear why. buf_ring just asserts that the lock is held. It's fine to use a sleepable lock AFAICS. (And rmlocks can be sleepable anyway.) | |