• D
    isci: preallocate remote devices · d9c37390
    Dan Williams 提交于
    Until we synchronize against device removal this limits the damage of
    use after free bugs to the driver's own objects.  Unless we implement
    reference counting we need to ensure at least a subset of a remote
    device is valid at all times.  We follow the lead of other libsas
    drivers that also preallocate devices.
    
    This also enforces maximum remote device accounting at the lldd layer,
    but the core may still run out of RNC's before we hit this limit.
    Signed-off-by: NDan Williams <dan.j.williams@intel.com>
    d9c37390
isci.h 4.8 KB