Commit 24179f488092267c9a033d7e25ce7a58af50ff79
1 parent
f3b8436ad9
Exists in
master
and in
39 other branches
dlm: fix plock notify callback to lockd
We should use the original copy of the file_lock, fl, instead of the copy, flc in the lockd notify callback. The range in flc has been modified by posix_lock_file(), so it will not match a copy of the lock in lockd. Signed-off-by: David Teigland <teigland@redhat.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
fs/dlm/plock.c
... | ... | @@ -168,7 +168,7 @@ |
168 | 168 | notify = xop->callback; |
169 | 169 | |
170 | 170 | if (op->info.rv) { |
171 | - notify(flc, NULL, op->info.rv); | |
171 | + notify(fl, NULL, op->info.rv); | |
172 | 172 | goto out; |
173 | 173 | } |
174 | 174 | |
... | ... | @@ -187,7 +187,7 @@ |
187 | 187 | (unsigned long long)op->info.number, file, fl); |
188 | 188 | } |
189 | 189 | |
190 | - rv = notify(flc, NULL, 0); | |
190 | + rv = notify(fl, NULL, 0); | |
191 | 191 | if (rv) { |
192 | 192 | /* XXX: We need to cancel the fs lock here: */ |
193 | 193 | log_print("dlm_plock_callback: lock granted after lock request " |