Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d4ba3f0 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Jens Axboe
Browse files

drbd: Avoid inconsistent locking warning



request_timer_fn() takes resource->req_lock via the device and releases it via
the connection.  Avoid this as it is confusing static code checkers.

Reported-by: default avatar"Dan Carpenter" <dan.carpenter@oracle.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruen@linbit.com>

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent f0c21e62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1645,6 +1645,6 @@ void request_timer_fn(unsigned long data)
		? oldest_submit_jif + dt : now + et;
	nt = time_before(ent, dt) ? ent : dt;
out:
	spin_unlock_irq(&connection->resource->req_lock);
	spin_unlock_irq(&device->resource->req_lock);
	mod_timer(&device->request_timer, nt);
}