Skip to content

Commit

Permalink
fix 19 year old bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Dagnelie committed Jan 29, 2025
1 parent c28910b commit 3642e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/zfs/zio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3030,10 +3030,10 @@ zio_write_gang_member_ready(zio_t *zio)
VERIFY3U(BP_GET_NDVAS(zio->io_bp), <=, BP_GET_NDVAS(pio->io_bp));

mutex_enter(&pio->io_lock);
for (int d = 0; d < BP_GET_NDVAS(zio->io_bp); d++) {
for (int d = 0; d < BP_GET_NDVAS(pio->io_bp); d++) {
ASSERT(DVA_GET_GANG(&pdva[d]));
asize = DVA_GET_ASIZE(&pdva[d]);
asize += DVA_GET_ASIZE(&cdva[d]);
asize += DVA_GET_ASIZE(&cdva[0]);
DVA_SET_ASIZE(&pdva[d], asize);
}
mutex_exit(&pio->io_lock);
Expand Down

0 comments on commit 3642e79

Please sign in to comment.