summaryrefslogtreecommitdiff
path: root/fs/dlm/midcomms.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-11-30 22:47:17 +0300
committerDavid Teigland <teigland@redhat.com>2021-12-07 21:42:26 +0300
commitbe3b0400edbf68556cd390125e2c868988616391 (patch)
treec8a131d2ca3fc332b4076bec1fdd6518bba6f773 /fs/dlm/midcomms.c
parent21d9ac1a5376d949199398848006f6b14649f533 (diff)
downloadlinux-be3b0400edbf68556cd390125e2c868988616391.tar.xz
fs: dlm: remove wq_alloc mutex
This patch cleanups the code for allocating a new buffer in the dlm writequeue mechanism. There was a possible tuneup to allow scheduling while a new writequeue entry needs to be allocated because either no sending page is available or are full. To avoid multiple concurrent users checking at the same time if an entry is available or full alloc_wq was introduce that those are waiting if there is currently a new writequeue entry in process to be queued so possible further users will check on the new allocated writequeue entry if it's full. To simplify the code we just remove this mutex and switch that the already introduced spin lock will be held during writequeue check, allocation and queueing. So other users can never check on available writequeues while there is a new one in process but not queued yet. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.c')
0 files changed, 0 insertions, 0 deletions