drbd: Add explicit device parameter to D_ASSERT
[deliverable/linux.git] / drivers / block / drbd / drbd_state.c
index e66f725ff1698c10cc308cb0f7384a943a0f0f41..79d0ea26f373ae593f35302780dec54bada5e2e8 100644 (file)
@@ -376,7 +376,7 @@ drbd_req_state(struct drbd_device *device, union drbd_state mask,
        spin_unlock_irqrestore(&first_peer_device(device)->connection->req_lock, flags);
 
        if (f & CS_WAIT_COMPLETE && rv == SS_SUCCESS) {
-               D_ASSERT(current != first_peer_device(device)->connection->worker.task);
+               D_ASSERT(device, current != first_peer_device(device)->connection->worker.task);
                wait_for_completion(&done);
        }
 
@@ -1163,7 +1163,7 @@ static int w_after_state_ch(struct drbd_work *w, int unused)
 
        after_state_ch(device, ascw->os, ascw->ns, ascw->flags);
        if (ascw->flags & CS_WAIT_COMPLETE) {
-               D_ASSERT(ascw->done != NULL);
+               D_ASSERT(device, ascw->done != NULL);
                complete(ascw->done);
        }
        kfree(ascw);
@@ -1195,7 +1195,7 @@ int drbd_bitmap_io_from_worker(struct drbd_device *device,
 {
        int rv;
 
-       D_ASSERT(current == first_peer_device(device)->connection->worker.task);
+       D_ASSERT(device, current == first_peer_device(device)->connection->worker.task);
 
        /* open coded non-blocking drbd_suspend_io(device); */
        set_bit(SUSPEND_IO, &device->flags);
This page took 0.042081 seconds and 5 git commands to generate.