fs: dlm: fix srcu read lock usage
authorAlexander Aring <aahringo@redhat.com>
Fri, 21 May 2021 19:08:35 +0000 (15:08 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 25 May 2021 14:22:20 +0000 (09:22 -0500)
commitb38bc9c2b3171f4411d80015ecb876bc6f9bcd26
tree965d053610bfa684e7294ce938e107bee1cb4792
parent2df6b7627a81b1407378125246eacdb1d8c90036
fs: dlm: fix srcu read lock usage

This patch holds the srcu connection read lock in cases where we lookup
the connections and accessing it. We don't hold the srcu lock in workers
function where the scheduled worker is part of the connection itself.
The connection should not be freed if any worker is scheduled or
pending.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c