s3:cleanupd: sends MSG_SMB_UNLOCK twice to interested peers
commit1b34b8691896dcfac6be604fdd354c2b2466efb8
authorRalph Boehme <slow@samba.org>
Tue, 1 May 2018 07:53:36 +0000 (1 09:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 May 2018 07:58:07 +0000 (14 09:58 +0200)
treeb1809d707afbc32c343e6f1e2f5f50f0138bcf17
parentbb5cee36b67ca78d29474f6f33fab9372203b925
s3:cleanupd: sends MSG_SMB_UNLOCK twice to interested peers

MSG_SMB_UNLOCK should be send to smbd that are waiting on blocked
byte-range-locks when a lock holder died.

In smbd_cleanupd_unlock() we do this twice: once via a broadcast and
then again via brl_revalidate() to processes that are actually recorded
in brlock.tdb.

As brl_revalidate() should already take care of signaling anyone who
would be interested in the message, there's no need to broadcast.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13416

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri May  4 03:02:28 CEST 2018 on sn-devel-144

(cherry picked from commit 53ff08a2cf838c0f1c3f050ac2aa13fc3acc5981)
source3/smbd/smbd_cleanupd.c