mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
drbd: fix potential activity log refcount imbalance in error path
It is no longer sufficient to trigger on local WRITE, we need to check on (rq_state & RQ_IN_ACT_LOG) before calling drbd_al_complete_io also in the error path. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
d2e17807e3
commit
76727f684a
1 changed files with 1 additions and 1 deletions
|
@ -1033,7 +1033,7 @@ fail_conflicting:
|
|||
err = 0;
|
||||
|
||||
fail_free_complete:
|
||||
if (rw == WRITE && local)
|
||||
if (req->rq_state & RQ_IN_ACT_LOG)
|
||||
drbd_al_complete_io(mdev, sector);
|
||||
fail_and_free_req:
|
||||
if (local) {
|
||||
|
|
Loading…
Reference in a new issue