• Dan Williams's avatar
    isci: preallocate remote devices · d9c37390
    Dan Williams authored
    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: default avatarDan Williams <dan.j.williams@intel.com>
    d9c37390
host.c 15 KB