Page MenuHomeFreeBSD

storvsc: port a Linux patch, properly set residual data length on errors
ClosedPublic

Authored by avg on Nov 11 2019, 1:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 3, 11:57 AM
Unknown Object (File)
Mon, Mar 2, 11:19 PM
Unknown Object (File)
Sat, Feb 28, 12:00 AM
Unknown Object (File)
Fri, Feb 27, 3:14 PM
Unknown Object (File)
Fri, Feb 27, 12:01 PM
Unknown Object (File)
Sat, Feb 21, 1:07 PM
Unknown Object (File)
Mon, Feb 9, 6:26 PM
Unknown Object (File)
Feb 5 2026, 2:34 AM
Subscribers

Details

Summary

This change is based on Linux commit 40630f462824ee.
csio.resid should account for transfer_len only for success and
SRB_STATUS_DATA_OVERRUN condition.

I am not sure how exactly this change works, but I have a report from a user
that they see lots of checksum errors when running a pool scrub concurrently
with iozone -l 1 -s 100G. After applying this patch the problem cannot be
reproduced.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable