diff options
author | Bob Peterson <rpeterso@redhat.com> | 2017-09-12 10:55:04 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-09-25 19:45:21 +0200 |
commit | 61d9102b62129e13a2258c1e0566962f9a1732f0 (patch) | |
tree | 94f017d688925ebecfd3da5e96735c2f55af1eaf /block/bsg-lib.c | |
parent | Linux 4.14-rc2 (diff) | |
download | linux-61d9102b62129e13a2258c1e0566962f9a1732f0.tar.xz linux-61d9102b62129e13a2258c1e0566962f9a1732f0.zip |
DLM: Eliminate CF_CONNECT_PENDING flag
Before this patch, there was a flag in the con structure that was
used to determine whether or not a connect was needed. The bit was
set here and there, and cleared here and there, so it left some
race conditions: the bit was set, work was queued, then the worker
cleared the bit, allowing someone else to set it while the worker
ran. For the most part, this worked okay, but we got into trouble
if connections were lost and it needed to reconnect.
This patch eliminates the flag in favor of simply checking if we
actually have a sock pointer while protected by the mutex.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Tadashi Miyauchi <miyauchi@toshiba-tops.co.jp>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'block/bsg-lib.c')
0 files changed, 0 insertions, 0 deletions