• D
    isci: cleanup/optimize queue increment macros · 994a9303
    Dan Williams 提交于
    Every single i/o or event completion incurs a test and branch to see if
    the cycle bit changed.  For power-of-2 queue sizes the cycle bit can be
    read directly from the rollover of the queue pointer.
    
    Likely premature optimization, but the hidden if() and hidden
    assignments / side-effects in the macros were already asking to be
    cleaned up.
    Signed-off-by: NDan Williams <dan.j.williams@intel.com>
    994a9303
host.c 96.5 KB