Skip to content

Commit 9801f64

Browse files
committed
[GFS2] Remove incorrect initialisation of gh_owner
The gh_owner field shouldn't be set or reset outside the glock code. These were left over from when recursive locking was allowed. It isn't any more, so they are not needed. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
1 parent e90c01e commit 9801f64

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎fs/gfs2/inode.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ static int inode_create(struct gfs2_glock *i_gl, const struct gfs2_inum *inum,
319319
if (error)
320320
goto fail;
321321
}
322-
ip->i_iopen_gh.gh_owner = NULL;
323322

324323
spin_lock(&io_gl->gl_spin);
325324
gfs2_glock_hold(i_gl);

‎fs/gfs2/ops_fstype.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,6 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
468468
gfs2_glock_dq_uninit(&ji_gh);
469469
jindex = 0;
470470

471-
/* Disown my Journal glock */
472-
473-
sdp->sd_journal_gh.gh_owner = NULL;
474-
sdp->sd_jinode_gh.gh_owner = NULL;
475-
476471
p = kthread_run(gfs2_recoverd, sdp, "gfs2_recoverd");
477472
error = IS_ERR(p);
478473
if (error) {

0 commit comments

Comments
 (0)