Opened 13 years ago

Closed 11 months ago

#805 closed enhancement (fixed)

Fast read/write locker

Reported by: axeld Owned by:
Priority: low Milestone: R1
Component: Network & Internet/Stack Version:
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

The locking mechanism is currently too strict, and prevents concurrency where there is no need to. We need a multiple reader/single writer locking mechanism that is based on the benaphore mechanism. A read lock should be upgradeable to a write lock.

Change History (5)

comment:1 by axeld, 12 years ago

Milestone: R1 Network StackR1
Platform: All

comment:2 by axeld, 11 years ago

Component: System/KernelNetwork & Internet/Stack
Priority: normallow

comment:3 by bonefish, 11 years ago

What properties should the upgrade to write lock function have? I suppose you've something different in mind than read unlock + write lock.

comment:4 by axeld, 11 years ago

I have no idea anymore :-) I guess we should put this ticket aside until we have real concurrency speed problems to solve.

comment:5 by waddlesplash, 11 months ago

Resolution: fixed
Status: newclosed

rw_lock was changed to be almost entirely atomics (with a "25% kernel time reduction on Haiku builds") in 2009, so I'd say this is resolved. We can revisit performance issues later if needed.

Note: See TracTickets for help on using tickets.