From: Volker Lendecke Date: Fri, 13 Dec 2019 13:40:03 +0000 (+0100) Subject: smbd: Use explicit share_mode_wakeup_waiters() X-Git-Tag: ldb-2.1.0~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ad50544aaecd07b4a8f39cd329ed484aa38d6e;p=thirdparty%2Fsamba.git smbd: Use explicit share_mode_wakeup_waiters() We don't need to unparse the locking.tdb record, we just need to wake up waiters when removing an oplock Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Mon Dec 16 20:27:59 UTC 2019 on sn-devel-184 --- diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index cf972fc4b61..6704f34523a 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -2068,7 +2068,7 @@ bool remove_share_oplock(struct share_mode_lock *lck, files_struct *fsp) &fsp->lease->lease.lease_key); } - lck->data->modified = true; /* signal watchers */ + share_mode_wakeup_waiters(fsp->file_id); return true; }