From: Stephen M. Cameron Date: Mon, 23 Sep 2013 18:34:12 +0000 (-0500) Subject: [SCSI] hpsa: cap CCISS_PASSTHRU at 20 concurrent commands. X-Git-Tag: v3.14-rc1~131^2^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0390f0c0dfb540149d7369276b17ec53caf506cb;p=pandora-kernel.git [SCSI] hpsa: cap CCISS_PASSTHRU at 20 concurrent commands. Cap CCISS_BIG_PASSTHRU as well. If an attempt is made to exceed this, ioctl() will return -1 with errno == EAGAIN. This is to prevent a userland program from exhausting all of pci_alloc_consistent memory. I've only seen this problem when running a special test program designed to provoke it. 20 concurrent commands via the passthru ioctls (not counting SG_IO) should be more than enough. Signed-off-by: Stephen M. Cameron Signed-off-by: James Bottomley --- Reading git-diff-tree failed