diff options
| author | Jens Axboe <[email protected]> | 2014-09-10 15:02:03 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2014-09-10 15:02:03 +0000 |
| commit | a516440542afcb9647f88d12c35640baf02d07ea (patch) | |
| tree | d6e1cdc5f18f6c8025d4fb6415e682bb0b60dd29 /lib/string.c | |
| parent | Block: fix unbalanced bypass-disable in blk_register_queue (diff) | |
| download | kernel-a516440542afcb9647f88d12c35640baf02d07ea.tar.gz kernel-a516440542afcb9647f88d12c35640baf02d07ea.zip | |
blk-mq: scale depth and rq map appropriate if low on memory
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: Robert Elliott <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
