mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-10 20:36:21 +03:00
RAIDZ: Remove some excessive logging
There were some per I/O logging into dbgmsg in RAIDZ code, that increased CPU load and wiped useful content out of dbgmsg, for example during routine disk replacement process. I don't think we need it to be that verbose. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com> Closes #18059
This commit is contained in:
parent
0ba3403323
commit
0550abd4b8
@ -2703,16 +2703,6 @@ vdev_raidz_io_start(zio_t *zio)
|
|||||||
next_offset = synced_offset;
|
next_offset = synced_offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (use_scratch) {
|
|
||||||
zfs_dbgmsg("zio=%px %s io_offset=%llu offset_synced="
|
|
||||||
"%lld next_offset=%lld use_scratch=%u",
|
|
||||||
zio,
|
|
||||||
zio->io_type == ZIO_TYPE_WRITE ? "WRITE" : "READ",
|
|
||||||
(long long)zio->io_offset,
|
|
||||||
(long long)synced_offset,
|
|
||||||
(long long)next_offset,
|
|
||||||
use_scratch);
|
|
||||||
}
|
|
||||||
|
|
||||||
rm = vdev_raidz_map_alloc_expanded(zio,
|
rm = vdev_raidz_map_alloc_expanded(zio,
|
||||||
tvd->vdev_ashift, vdrz->vd_physical_width,
|
tvd->vdev_ashift, vdrz->vd_physical_width,
|
||||||
@ -2851,8 +2841,6 @@ raidz_parity_verify(zio_t *zio, raidz_row_t *rr)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (abd_cmp(orig[c], rc->rc_abd) != 0) {
|
if (abd_cmp(orig[c], rc->rc_abd) != 0) {
|
||||||
zfs_dbgmsg("found error on col=%u devidx=%u off %llx",
|
|
||||||
c, (int)rc->rc_devidx, (u_longlong_t)rc->rc_offset);
|
|
||||||
vdev_raidz_checksum_error(zio, rc, orig[c]);
|
vdev_raidz_checksum_error(zio, rc, orig[c]);
|
||||||
rc->rc_error = SET_ERROR(ECKSUM);
|
rc->rc_error = SET_ERROR(ECKSUM);
|
||||||
ret++;
|
ret++;
|
||||||
@ -3175,10 +3163,6 @@ vdev_raidz_io_done_verified(zio_t *zio, raidz_row_t *rr)
|
|||||||
*/
|
*/
|
||||||
ASSERT0(zio->io_flags & ZIO_FLAG_DIO_READ);
|
ASSERT0(zio->io_flags & ZIO_FLAG_DIO_READ);
|
||||||
|
|
||||||
zfs_dbgmsg("zio=%px repairing c=%u devidx=%u "
|
|
||||||
"offset=%llx",
|
|
||||||
zio, c, rc->rc_devidx, (long long)rc->rc_offset);
|
|
||||||
|
|
||||||
zio_nowait(zio_vdev_child_io(zio, NULL, cvd,
|
zio_nowait(zio_vdev_child_io(zio, NULL, cvd,
|
||||||
rc->rc_offset, rc->rc_abd, rc->rc_size,
|
rc->rc_offset, rc->rc_abd, rc->rc_size,
|
||||||
ZIO_TYPE_WRITE,
|
ZIO_TYPE_WRITE,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user