gfs2: separate holder for rgrps in gfs2_rename
authorBob Peterson <rpeterso@redhat.com>
Fri, 30 Aug 2019 17:31:00 +0000 (12:31 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 4 Sep 2019 18:22:17 +0000 (20:22 +0200)
commitbc74aaefdd538bb2756d74518c177378e6bd589f
tree7012c74dc336c12fa40c4569013f3f9afc74bde6
parentbccaef90738581038ee609e946f36812bd6fb1b3
gfs2: separate holder for rgrps in gfs2_rename

Before this patch, gfs2_rename added a holder for the rgrp glock to
its array of holders, ghs. There's nothing wrong with that, but this
patch separates it into a separate holder. This is done to ensure
it's always locked last as per the proper glock lock ordering,
and also to pave the way for a future patch in which we will
lock the non-rgrp glocks asynchronously.

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