Page MenuHomeFreeBSD

Avoid underflow during calculation of space avail for nsegs
ClosedPublic

Authored by sbruno on Apr 11 2016, 6:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 23 2024, 6:57 PM
Unknown Object (File)
Nov 22 2024, 11:56 AM
Unknown Object (File)
Nov 14 2024, 6:24 AM
Unknown Object (File)
Nov 4 2024, 3:49 PM
Unknown Object (File)
Oct 31 2024, 12:25 AM
Unknown Object (File)
Sep 27 2024, 12:19 PM
Unknown Object (File)
Sep 21 2024, 10:30 AM
Unknown Object (File)
Sep 14 2024, 10:12 PM

Details

Summary

Change logic to check tx_avail < nsegs + reserved_space

Diff Detail

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

Event Timeline

sbruno retitled this revision from to Avoid underflow during calculation of space avail for nsegs.
sbruno updated this object.
sbruno edited the test plan for this revision. (Show Details)
sbruno added reviewers: hiren, gnn.
gnn edited edge metadata.
This revision is now accepted and ready to land.Apr 11 2016, 9:32 PM

Just tagging you guys to see if this makes sense. I saw the em(4) driver underflow this calculation with dtrace and suspected that there is a small chance the other Intel drivers may do the same in extreme conditions considering that the code is basically the same.

Looks good to me.

Thanks jeb. "approve" this review with the Action pull down when you get a chance.

This revision was automatically updated to reflect the committed changes.