Commit 97236ad
Andreas Gruenbacher
gfs2: Avoid dequeuing GL_ASYNC glock holders twice
When a locking request fails, the associated glock holder is
automatically dequeued from the list of active and waiting holders. For
GL_ASYNC locking requests, this will obviously happen asynchronously
and it can race with attempts to cancel that locking request via
gfs2_glock_dq(). Therefore, don't forget to check if a locking request
has already been dequeued in gfs2_glock_dq().
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 4ad0208 commit 97236ad
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1710 | 1717 | | |
1711 | 1718 | | |
1712 | 1719 | | |
| |||
1716 | 1723 | | |
1717 | 1724 | | |
1718 | 1725 | | |
| 1726 | + | |
1719 | 1727 | | |
1720 | 1728 | | |
1721 | 1729 | | |
| |||
0 commit comments