linux_dsm_epyc7002/drivers/net/ethernet/chelsio/cxgb4
Michal Hocko f72f116a2a cxgb4: drop __GFP_NOFAIL allocation
set_filter_wr is requesting __GFP_NOFAIL allocation although it can return
ENOMEM without any problems obviously (t4_l2t_set_switching does that
already).  So the non-failing requirement is too strong without any
obvious reason.  Drop __GFP_NOFAIL and reorganize the code to have the
failure paths easier.

The same applies to _c4iw_write_mem_dma_aligned which uses __GFP_NOFAIL
and then checks the return value and returns -ENOMEM on failure.  This
doesn't make any sense what so ever.  Either the allocation cannot fail or
it can.

del_filter_wr seems to be safe as well because the filter entry is not
marked as pending and the return value is propagated up the stack up to
c4iw_destroy_listen.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Hariprasad S <hariprasad@chelsio.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-04-16 12:03:01 -04:00
..
clip_tbl.c cxgb4: Fix incorrect 'c' suffix to %pI4, use %pISc instead 2015-02-20 17:25:52 -05:00
clip_tbl.h cxgb4: Fix incorrect 'c' suffix to %pI4, use %pISc instead 2015-02-20 17:25:52 -05:00
cxgb4_dcb.c chelsio: cxgb4: fix sparse warning 2015-02-05 16:03:27 -08:00
cxgb4_dcb.h cxgb4 : Improve IEEE DCBx support, other minor open-lldp fixes 2015-02-02 18:54:35 -08:00
cxgb4_debugfs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-04-02 16:16:53 -04:00
cxgb4_debugfs.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2015-02-17 14:56:45 -08:00
cxgb4_ethtool.c cxgb4: Move ethtool related code to a separate file 2015-04-07 17:38:54 -04:00
cxgb4_fcoe.c cxgb4: fix boolreturn.cocci warnings 2015-03-29 12:15:56 -07:00
cxgb4_fcoe.h cxgb4: add cxgb4_fcoe.h and macro definitions for FCoE 2015-03-24 15:24:38 -04:00
cxgb4_main.c cxgb4: drop __GFP_NOFAIL allocation 2015-04-16 12:03:01 -04:00
cxgb4_uld.h cxgb4 : Update ipv6 address handling api 2015-01-15 18:59:46 -05:00
cxgb4.h cxgb4: Move ethtool related code to a separate file 2015-04-07 17:38:54 -04:00
l2t.c iw_cxgb4/cxgb4/cxgb4vf/cxgb4i/csiostor: Cleanup register defines/macros related to all other cpl messages 2015-01-12 16:19:34 -05:00
l2t.h cxgb4 : Update copyright year on all cxgb4 files 2014-06-22 21:13:33 -07:00
Makefile cxgb4: Move ethtool related code to a separate file 2015-04-07 17:38:54 -04:00
sge.c cxgb4: Don't call t4_slow_intr_handler when we're not the Master PF 2015-04-14 15:08:52 -04:00
t4_hw.c cxgb4: Move ethtool related code to a separate file 2015-04-07 17:38:54 -04:00
t4_hw.h cxgb4: Add support for ULP RX logic analyzer output in debugfs 2015-02-07 22:52:39 -08:00
t4_msg.h cxgb4: add cxgb4_fcoe.h and macro definitions for FCoE 2015-03-24 15:24:38 -04:00
t4_pci_id_tbl.h cxgb4/cxgb4vf/csiostor: Make PCI Device ID Tables be "const" 2015-03-19 15:30:21 -04:00
t4_regs.h cxgb4: Fix to dump devlog, even if FW is crashed 2015-04-01 14:47:20 -04:00
t4_values.h cxgb4: Add support to dump mailbox content in debugfs 2015-02-07 22:52:39 -08:00
t4fw_api.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-04-02 16:16:53 -04:00
t4fw_version.h cxgb4: Firmware macro changes for fw verison 1.13.32.0 2015-04-01 14:47:20 -04:00