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
Raw File
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
Makefile
#
# Makefile for the Linux JFS filesystem routines.
#

obj-$(CONFIG_JFS_FS) += jfs.o

jfs-y    := super.o file.o inode.o namei.o jfs_mount.o jfs_umount.o \
	    jfs_xtree.o jfs_imap.o jfs_debug.o jfs_dmap.o \
	    jfs_unicode.o jfs_dtree.o jfs_inode.o jfs_discard.o \
	    jfs_extent.o symlink.o jfs_metapage.o \
	    jfs_logmgr.o jfs_txnmgr.o jfs_uniupr.o \
	    resize.o xattr.o ioctl.o

jfs-$(CONFIG_JFS_POSIX_ACL) += acl.o

ccflags-y := -D_JFS_4K
back to top