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:
committed by
Gerald (Jerry) Carter
parent
94cdd5d64c
commit
a7a0b6ba50
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user