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
History
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
Tip revision: a516440
File Mode Size
Kconfig -rw-r--r-- 5.7 KB
LICENCE -rw-r--r-- 1.4 KB
Makefile -rw-r--r-- 751 bytes
README.Locking -rw-r--r-- 7.0 KB
TODO -rw-r--r-- 1.9 KB
acl.c -rw-r--r-- 6.8 KB
acl.h -rw-r--r-- 929 bytes
background.c -rw-r--r-- 4.3 KB
build.c -rw-r--r-- 10.9 KB
compr.c -rw-r--r-- 11.6 KB
compr.h -rw-r--r-- 3.1 KB
compr_lzo.c -rw-r--r-- 2.2 KB
compr_rtime.c -rw-r--r-- 2.8 KB
compr_rubin.c -rw-r--r-- 8.8 KB
compr_zlib.c -rw-r--r-- 5.5 KB
debug.c -rw-r--r-- 25.7 KB
debug.h -rw-r--r-- 7.9 KB
dir.c -rw-r--r-- 22.4 KB
erase.c -rw-r--r-- 14.2 KB
file.c -rw-r--r-- 9.4 KB
fs.c -rw-r--r-- 20.0 KB
gc.c -rw-r--r-- 42.9 KB
ioctl.c -rw-r--r-- 557 bytes
jffs2_fs_i.h -rw-r--r-- 1.6 KB
jffs2_fs_sb.h -rw-r--r-- 5.8 KB
malloc.c -rw-r--r-- 7.5 KB
nodelist.c -rw-r--r-- 21.3 KB
nodelist.h -rw-r--r-- 17.8 KB
nodemgmt.c -rw-r--r-- 28.4 KB
os-linux.h -rw-r--r-- 7.3 KB
read.c -rw-r--r-- 6.7 KB
readinode.c -rw-r--r-- 43.2 KB
scan.c -rw-r--r-- 35.1 KB
security.c -rw-r--r-- 2.3 KB
summary.c -rw-r--r-- 23.6 KB
summary.h -rw-r--r-- 6.3 KB
super.c -rw-r--r-- 10.3 KB
symlink.c -rw-r--r-- 1.8 KB
wbuf.c -rw-r--r-- 37.4 KB
write.c -rw-r--r-- 21.0 KB
writev.c -rw-r--r-- 1.1 KB
xattr.c -rw-r--r-- 38.2 KB
xattr.h -rw-r--r-- 4.3 KB
xattr_trusted.c -rw-r--r-- 1.4 KB
xattr_user.c -rw-r--r-- 1.4 KB

README.Locking

back to top