diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2014-04-23 06:25:23 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-07-10 12:35:09 -0400 |
commit | 45d2933c921c51ddd2780a806193ab00e03fe215 (patch) | |
tree | cb692e7a7e817f784cf62f5e0e725159471c77c5 | |
parent | b9ed7080d7d29112c898c64bad778b84eec0ed2d (diff) |
drbd: also keep track of trim -> zero-out fallback peer_requests
To be able to find and present such zero-out fallback peer_requests
in debugfs, we add those to "active_ee", once that list drained.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index db5c58042734..7a1078d285dd 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -1370,6 +1370,11 @@ int drbd_submit_peer_request(struct drbd_device *device, | |||
1370 | /* wait for all pending IO completions, before we start | 1370 | /* wait for all pending IO completions, before we start |
1371 | * zeroing things out. */ | 1371 | * zeroing things out. */ |
1372 | conn_wait_active_ee_empty(first_peer_device(device)->connection); | 1372 | conn_wait_active_ee_empty(first_peer_device(device)->connection); |
1373 | /* add it to the active list now, | ||
1374 | * so we can find it to present it in debugfs */ | ||
1375 | spin_lock_irq(&device->resource->req_lock); | ||
1376 | list_add_tail(&peer_req->w.list, &device->active_ee); | ||
1377 | spin_unlock_irq(&device->resource->req_lock); | ||
1373 | if (blkdev_issue_zeroout(device->ldev->backing_bdev, | 1378 | if (blkdev_issue_zeroout(device->ldev->backing_bdev, |
1374 | sector, ds >> 9, GFP_NOIO)) | 1379 | sector, ds >> 9, GFP_NOIO)) |
1375 | peer_req->flags |= EE_WAS_ERROR; | 1380 | peer_req->flags |= EE_WAS_ERROR; |