gfs2: Clean up glock work enqueuing
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 30 Jun 2017 13:10:01 +0000 (08:10 -0500)
committerBob Peterson <rpeterso@redhat.com>
Wed, 5 Jul 2017 12:21:00 +0000 (07:21 -0500)
commit6b0c7440bcb4b7e5a64836132caf56bf19a33f6e
tree91213ce9e8861541c25c05d1dcb9fb0fab8053e9
parent6f6597baae206c544c49ad7f1129d5adc1e9019d
gfs2: Clean up glock work enqueuing

This patch adds a standardized queueing mechanism for glock work
with spin_lock protection to prevent races.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c