@@ -403,7 +403,8 @@ static int init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh,
403
403
404
404
error = gfs2_glock_nq_num (sdp ,
405
405
GFS2_MOUNT_LOCK , & gfs2_nondisk_glops ,
406
- LM_ST_EXCLUSIVE , LM_FLAG_NOEXP | GL_NOCACHE ,
406
+ LM_ST_EXCLUSIVE ,
407
+ LM_FLAG_NOEXP | GL_NOCACHE | GL_NOPID ,
407
408
mount_gh );
408
409
if (error ) {
409
410
fs_err (sdp , "can't acquire mount glock: %d\n" , error );
@@ -413,7 +414,7 @@ static int init_locking(struct gfs2_sbd *sdp, struct gfs2_holder *mount_gh,
413
414
error = gfs2_glock_nq_num (sdp ,
414
415
GFS2_LIVE_LOCK , & gfs2_nondisk_glops ,
415
416
LM_ST_SHARED ,
416
- LM_FLAG_NOEXP | GL_EXACT ,
417
+ LM_FLAG_NOEXP | GL_EXACT | GL_NOPID ,
417
418
& sdp -> sd_live_gh );
418
419
if (error ) {
419
420
fs_err (sdp , "can't acquire live glock: %d\n" , error );
@@ -689,7 +690,7 @@ static int init_statfs(struct gfs2_sbd *sdp)
689
690
iput (pn );
690
691
pn = NULL ;
691
692
ip = GFS2_I (sdp -> sd_sc_inode );
692
- error = gfs2_glock_nq_init (ip -> i_gl , LM_ST_EXCLUSIVE , 0 ,
693
+ error = gfs2_glock_nq_init (ip -> i_gl , LM_ST_EXCLUSIVE , GL_NOPID ,
693
694
& sdp -> sd_sc_gh );
694
695
if (error ) {
695
696
fs_err (sdp , "can't lock local \"sc\" file: %d\n" , error );
@@ -778,7 +779,7 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
778
779
error = gfs2_glock_nq_num (sdp , sdp -> sd_lockstruct .ls_jid ,
779
780
& gfs2_journal_glops ,
780
781
LM_ST_EXCLUSIVE ,
781
- LM_FLAG_NOEXP | GL_NOCACHE ,
782
+ LM_FLAG_NOEXP | GL_NOCACHE | GL_NOPID ,
782
783
& sdp -> sd_journal_gh );
783
784
if (error ) {
784
785
fs_err (sdp , "can't acquire journal glock: %d\n" , error );
@@ -788,7 +789,8 @@ static int init_journal(struct gfs2_sbd *sdp, int undo)
788
789
ip = GFS2_I (sdp -> sd_jdesc -> jd_inode );
789
790
sdp -> sd_jinode_gl = ip -> i_gl ;
790
791
error = gfs2_glock_nq_init (ip -> i_gl , LM_ST_SHARED ,
791
- LM_FLAG_NOEXP | GL_EXACT | GL_NOCACHE ,
792
+ LM_FLAG_NOEXP | GL_EXACT |
793
+ GL_NOCACHE | GL_NOPID ,
792
794
& sdp -> sd_jinode_gh );
793
795
if (error ) {
794
796
fs_err (sdp , "can't acquire journal inode glock: %d\n" ,
@@ -959,7 +961,7 @@ static int init_per_node(struct gfs2_sbd *sdp, int undo)
959
961
pn = NULL ;
960
962
961
963
ip = GFS2_I (sdp -> sd_qc_inode );
962
- error = gfs2_glock_nq_init (ip -> i_gl , LM_ST_EXCLUSIVE , 0 ,
964
+ error = gfs2_glock_nq_init (ip -> i_gl , LM_ST_EXCLUSIVE , GL_NOPID ,
963
965
& sdp -> sd_qc_gh );
964
966
if (error ) {
965
967
fs_err (sdp , "can't lock local \"qc\" file: %d\n" , error );
0 commit comments