Commit f6f7418
dlm: fix wake_up() calls for pending remove
This patch move the wake_up() call at the point when a remove message
completed. Before it was only when a remove message was going to be
sent. The possible waiter in wait_pending_remove() waits until a remove
is done if the resource name matches with the per ls variable
ls->ls_remove_name. If this is the case we must wait until a pending
remove is done which is indicated if DLM_WAIT_PENDING_COND() returns
false which will always be the case when ls_remove_len and
ls_remove_name are unset to indicate that a remove is not going on
anymore.
Fixes: 21d9ac1 ("fs: dlm: use event based wait for pending remove")
Cc: stable@vger.kernel.org
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>1 parent 2c3fa6a commit f6f7418
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1810 | 1810 | | |
1811 | 1811 | | |
1812 | 1812 | | |
1813 | | - | |
1814 | 1813 | | |
1815 | 1814 | | |
1816 | 1815 | | |
| |||
1819 | 1818 | | |
1820 | 1819 | | |
1821 | 1820 | | |
| 1821 | + | |
1822 | 1822 | | |
1823 | 1823 | | |
1824 | 1824 | | |
| |||
4096 | 4096 | | |
4097 | 4097 | | |
4098 | 4098 | | |
4099 | | - | |
4100 | 4099 | | |
4101 | 4100 | | |
4102 | 4101 | | |
| |||
4112 | 4111 | | |
4113 | 4112 | | |
4114 | 4113 | | |
| 4114 | + | |
4115 | 4115 | | |
4116 | 4116 | | |
4117 | 4117 | | |
| |||
0 commit comments