]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libcxgbi: do not print a message when memory allocation fails
authorThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Wed, 14 Dec 2011 15:46:23 +0000 (13:46 -0200)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 10 Jan 2012 23:01:21 +0000 (17:01 -0600)
commit7a8028c71bd6d8ca3a26d3253e0742f8d221b3f5
tree9cfb371be94166a419ffbae18eb90c1813cf3843
parente91fd204af1a55aad7ad93e9a1b5eb443b037d91
[SCSI] libcxgbi: do not print a message when memory allocation fails

In alloc_pdu, libcxgbi tries to allocate a skb with GFP_ATOMIC, which
may potentially fail. When it happens, the current code prints a warning
message.

When the system is under IO stress, this failure may happen lots of
times and it usually scares users.

Instead of printing the warning message, the code now increases the
tx_dropped statistics for the ethernet interface wich is doing the iscsi
task.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Acked-by: Karen Xie <kxie@chelsio.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/cxgbi/libcxgbi.c