1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-23 20:23:50 +03:00

r17314: Optimisation for POSIX locking. If we're downgrading

a POSIX lock (applying a read-lock) and we overlap
pending read locks then send them an unlock message,
we may have allowed them to proceed.
Jeremy.
This commit is contained in:
Jeremy Allison
2006-07-29 19:14:24 +00:00
committed by Gerald (Jerry) Carter
parent 94cdd5d64c
commit a7a0b6ba50
4 changed files with 77 additions and 34 deletions

View File

@@ -137,7 +137,7 @@ BOOL push_blocking_lock_request( struct byte_range_lock *br_lck,
procid_self(),
offset,
count,
PENDING_LOCK,
lock_type == READ_LOCK ? PENDING_READ_LOCK : PENDING_WRITE_LOCK,
blr->lock_flav,
lock_timeout ? True : False); /* blocking_lock. */