Commit 8793e14
gfs2: set glock object after nq
Before this patch, function gfs2_create_inode called glock_set_object to
set the gl_object for inode and iopen glocks before the glock was locked.
That's wrong because other competing processes like evict may be
blocked waiting for the glock and still have gl_object set before the
actual eviction can take place.
This patch moves the call to glock_set_object until after the glock is
acquire in function gfs2_create_inode, so it waits for possibly
competing evicts to finish their processing first.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 4b3113a commit 8793e14
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
735 | 734 | | |
736 | 735 | | |
737 | 736 | | |
738 | 737 | | |
739 | 738 | | |
740 | | - | |
741 | 739 | | |
742 | 740 | | |
743 | 741 | | |
744 | 742 | | |
745 | 743 | | |
| 744 | + | |
746 | 745 | | |
747 | 746 | | |
748 | 747 | | |
| |||
758 | 757 | | |
759 | 758 | | |
760 | 759 | | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
0 commit comments