|
|
@@ -188,6 +188,12 @@ void drbd_peer_request_endio(struct bio *bio)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+void drbd_panic_after_delayed_completion_of_aborted_request(struct drbd_device *device)
|
|
|
+{
|
|
|
+ panic("drbd%u %s/%u potential random memory corruption caused by delayed completion of aborted local request\n",
|
|
|
+ device->minor, device->resource->name, device->vnr);
|
|
|
+}
|
|
|
+
|
|
|
/* read, readA or write requests on R_PRIMARY coming from drbd_make_request
|
|
|
*/
|
|
|
void drbd_request_endio(struct bio *bio)
|
|
|
@@ -231,7 +237,7 @@ void drbd_request_endio(struct bio *bio)
|
|
|
drbd_emerg(device, "delayed completion of aborted local request; disk-timeout may be too aggressive\n");
|
|
|
|
|
|
if (!bio->bi_error)
|
|
|
- panic("possible random memory corruption caused by delayed completion of aborted local request\n");
|
|
|
+ drbd_panic_after_delayed_completion_of_aborted_request(device);
|
|
|
}
|
|
|
|
|
|
/* to avoid recursion in __req_mod */
|