Page MenuHomeFreeBSD

Make smartpqi(4) behave better when running out of memory.
ClosedPublic

Authored by trasz on Mar 24 2019, 8:25 PM.
Tags
None
Referenced Files
F131832147: D19696.diff
Sat, Oct 11, 1:18 PM
Unknown Object (File)
Sun, Sep 28, 2:38 PM
Unknown Object (File)
Sat, Sep 13, 9:49 AM
Unknown Object (File)
Sep 3 2025, 4:13 PM
Unknown Object (File)
Aug 31 2025, 11:25 AM
Unknown Object (File)
Aug 30 2025, 10:05 PM
Unknown Object (File)
Aug 17 2025, 12:28 AM
Unknown Object (File)
Aug 4 2025, 2:11 AM
Subscribers

Details

Summary

Make smartpqi(4) behave better when running out of memory,
by returning CAM_RESRC_UNAVAIL instead of CAM_REQUEUE_REQ.
This makes CAM delay a bit before retrying, so that the
retries actually get a chance to succeed.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Mar 24 2019, 9:06 PM

I think this looks good, but I've not studied it in enough detail to know for sure.
It might make sense to see if Scott or Ken has a chance to look into this to be sure it's the right solution.

This revision was automatically updated to reflect the committed changes.

Damn, committed it before reading the comments, sorry for that. Still, I've compared this with what isp(4), mpt(4) and iscsi(4) do (and actually done that in the past with iscsi(4)), so it should be all right.