https://github.com/torvalds/linux
Revision a516440542afcb9647f88d12c35640baf02d07ea authored by Jens Axboe on 10 September 2014, 15:02:03 UTC, committed by Jens Axboe on 10 September 2014, 15:02:03 UTC
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 <elliott@hp.com> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent df35c7c
Tip revision: a516440542afcb9647f88d12c35640baf02d07ea authored by Jens Axboe on 10 September 2014, 15:02:03 UTC
blk-mq: scale depth and rq map appropriate if low on memory
blk-mq: scale depth and rq map appropriate if low on memory
Tip revision: a516440
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 476 bytes |
Makefile | -rw-r--r-- | 343 bytes |
ast.c | -rw-r--r-- | 8.0 KB |
ast.h | -rw-r--r-- | 1.3 KB |
config.c | -rw-r--r-- | 26.7 KB |
config.h | -rw-r--r-- | 1.5 KB |
debug_fs.c | -rw-r--r-- | 18.1 KB |
dir.c | -rw-r--r-- | 7.4 KB |
dir.h | -rw-r--r-- | 1.0 KB |
dlm_internal.h | -rw-r--r-- | 20.0 KB |
lock.c | -rw-r--r-- | 155.9 KB |
lock.h | -rw-r--r-- | 2.9 KB |
lockspace.c | -rw-r--r-- | 20.3 KB |
lockspace.h | -rw-r--r-- | 1.0 KB |
lowcomms.c | -rw-r--r-- | 44.6 KB |
lowcomms.h | -rw-r--r-- | 1.1 KB |
lvb_table.h | -rw-r--r-- | 687 bytes |
main.c | -rw-r--r-- | 2.0 KB |
member.c | -rw-r--r-- | 16.2 KB |
member.h | -rw-r--r-- | 1.4 KB |
memory.c | -rw-r--r-- | 2.1 KB |
memory.h | -rw-r--r-- | 1.0 KB |
midcomms.c | -rw-r--r-- | 3.7 KB |
midcomms.h | -rw-r--r-- | 864 bytes |
netlink.c | -rw-r--r-- | 2.9 KB |
plock.c | -rw-r--r-- | 11.7 KB |
rcom.c | -rw-r--r-- | 15.9 KB |
rcom.h | -rw-r--r-- | 1.2 KB |
recover.c | -rw-r--r-- | 22.8 KB |
recover.h | -rw-r--r-- | 1.5 KB |
recoverd.c | -rw-r--r-- | 7.9 KB |
recoverd.h | -rw-r--r-- | 927 bytes |
requestqueue.c | -rw-r--r-- | 4.8 KB |
requestqueue.h | -rw-r--r-- | 882 bytes |
user.c | -rw-r--r-- | 24.2 KB |
user.h | -rw-r--r-- | 586 bytes |
util.c | -rw-r--r-- | 4.5 KB |
util.h | -rw-r--r-- | 805 bytes |
Computing file changes ...