[Cluster-devel] [PATCH v2] gfs2: Lock holder cleanup

Bob Peterson rpeterso at redhat.com
Mon Jun 27 15:21:25 UTC 2016


----- Original Message -----
| Make the code more readable by cleaning up the different ways of
| initializing lock holders and checking for initialized lock holders:
| mark lock holders as uninitialized by setting the holder's glock to NULL
| (gfs2_holder_mark_uninitialized) instead of zeroing out the entire
| object or using a separate flag.  Recognize initialized holders by their
| non-NULL glock (gfs2_holder_initialized).  Don't zero out holder objects
| which are immeditiately initialized via gfs2_holder_init or
| gfs2_glock_nq_init.
| 
| Signed-off-by: Andreas Gruenbacher <agruenba at redhat.com>
| ---
Hi,

Thanks. This is now applied to the for-next branch of the linux-gfs2 tree:
https://git.kernel.org/cgit/linux/kernel/git/gfs2/linux-gfs2.git/commit/fs?h=for-next&id=6df9f9a253c7dc9f8ed18bf89d762de350a31813

Regards,

Bob Peterson
Red Hat File Systems




More information about the Cluster-devel mailing list