• J
    blk-mq: scale depth and rq map appropriate if low on memory · a5164405
    Jens Axboe 提交于
    If we are running in a kdump environment, resources are scarce.
    For some SCSI setups with a huge set of shared tags, we run out
    of memory allocating what the drivers is asking for. So implement
    a scale back logic to reduce the tag depth for those cases, allowing
    the driver to successfully load.
    
    We should extend this to detect low memory situations, and implement
    a sane fallback for those (1 queue, 64 tags, or something like that).
    Tested-by: NRobert Elliott <elliott@hp.com>
    Signed-off-by: NJens Axboe <axboe@fb.com>
    a5164405
blk-mq.c 47.5 KB