Opened 13 years ago

Closed 7 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 Changed 12 years ago by axeld

Milestone: R1 Network StackR1
Platform: All

comment:2 Changed 11 years ago by axeld

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

comment:3 Changed 11 years ago by bonefish

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 Changed 11 years ago by axeld

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

comment:5 Changed 7 months ago by waddlesplash

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.