Commit 62abf26
Andreas Gruenbacher
gfs2: Get rid of GLF_INVALIDATE_IN_PROGRESS
JIRA: https://issues.redhat.com/browse/RHEL-116886
Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
Get rid of the GLF_INVALIDATE_IN_PROGRESS flag: it was originally used
to indicate to add_to_queue() that the ->go_sync() and ->go_invalid()
operations were in progress, but as we have established in commit "gfs2:
Fix LM_FLAG_TRY* logic in add_to_queue", add_to_queue() has no need to
know.
Commit d99724c describes a race in which GLF_INVALIDATE_IN_PROGRESS
is used to serialize two processes which are both in do_xmote() at the
same time. That analysis is wrong: the serialization happens via the
GLF_LOCK flag, which ensures that at most one glock operation can be
active at any time.
Fixes: d99724c ("gfs2: Close timing window with GLF_INVALIDATE_IN_PROGRESS")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
(cherry picked from commit bddb53b)1 parent 625be2b commit 62abf26
3 files changed
+1
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | 707 | | |
719 | 708 | | |
720 | 709 | | |
| |||
733 | 722 | | |
734 | 723 | | |
735 | 724 | | |
736 | | - | |
| 725 | + | |
737 | 726 | | |
738 | 727 | | |
739 | 728 | | |
| |||
748 | 737 | | |
749 | 738 | | |
750 | 739 | | |
751 | | - | |
752 | 740 | | |
753 | 741 | | |
754 | 742 | | |
| |||
2314 | 2302 | | |
2315 | 2303 | | |
2316 | 2304 | | |
2317 | | - | |
2318 | | - | |
2319 | 2305 | | |
2320 | 2306 | | |
2321 | 2307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | 322 | | |
324 | 323 | | |
325 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
0 commit comments