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

Commit 2c2263c9 authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer
Browse files

dm cache: log error message if dm_kcopyd_copy() fails



A migration failure should be logged (albeit limited).

Signed-off-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 80f659f3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -886,9 +886,11 @@ static void issue_copy_real(struct dm_cache_migration *mg)
		r = dm_kcopyd_copy(cache->copier, &o_region, 1, &c_region, 0, copy_complete, mg);
	}

	if (r < 0)
	if (r < 0) {
		DMERR_LIMIT("issuing migration failed");
		migration_failure(mg);
	}
}

static void avoid_copy(struct dm_cache_migration *mg)
{