1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/locking
Volker Lendecke 8bae5d82e2 smbd: Don't store num_read_oplocks in brlock.tdb
This removes a kludgy implementation that worked around a locking
hierarchy problem: Setting a byte range lock had to contend the level2
oplocks, which are stored in locking.tdb/leases.tdb. We could not
access locking.tdb in the brlock.tdb code, as brlock.tdb might have
been locked first without locking.tdb, violating the locking hierarchy
locking.tdb->brlock.tdb. Now that that problem is gone (see the commit
wrapping do_lock() in share_mode_do_locked()), we can remove this
kludge.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
2019-07-04 14:03:29 +00:00
..
brlock.c smbd: Don't store num_read_oplocks in brlock.tdb 2019-07-04 14:03:29 +00:00
leases_db.c leases_db: Add getter/setter for share_mode_lease metadata 2019-04-14 04:01:30 +00:00
leases_db.h leases_db: Add getter/setter for share_mode_lease metadata 2019-04-14 04:01:30 +00:00
leases_util.c s3/locking: helper functions for lease types 2017-05-06 19:01:14 +02:00
locking.c smbd: Set SHARE_MODE_HAS_READ_LEASE when downgrading an oplock 2019-07-04 14:03:29 +00:00
posix.c s3/locking: Fix logging of lock reference count 2018-10-02 10:40:05 +02:00
proto.h smbd: Don't store num_read_oplocks in brlock.tdb 2019-07-04 14:03:29 +00:00
share_mode_lock.c smbd: Add file_has_read_lease() 2019-07-04 14:03:29 +00:00