linux/drivers/infiniband/hw/mlx4
Roland Dreier 0c87b67209 IB/mlx4: Don't use GFP_ATOMIC for CQ resize struct
We allocate a small tracking structure as part of mlx4_ib_resize_cq().
However, we don't need to use GFP_ATOMIC -- immediately after the
allocation, we call mlx4_cq_resize(), which allocates a command
mailbox with GFP_KERNEL and then sleeps on a firmware command, so we
better not be in an atomic context.

This actually has a real impact, because when this GFP_ATOMIC
allocation fails (and GFP_ATOMIC does fail in practice) then a
userspace consumer resizing a CQ will get a spurious failure that we
can easily avoid.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-08-03 21:03:32 -04:00
..
ah.c infiniband: Replace memset with eth_zero_addr 2016-01-19 15:24:54 -05:00
alias_GUID.c IB/mlx4: Use boottime 2016-02-29 17:11:40 -05:00
cm.c IB/mlx4: In mlx4_ib_demux_cm, print out GUID in host-endian order 2015-02-17 22:11:40 -08:00
cq.c IB/mlx4: Don't use GFP_ATOMIC for CQ resize struct 2016-08-03 21:03:32 -04:00
doorbell.c IB: Refactor umem to use linear SG table 2014-03-04 10:34:28 -08:00
Kconfig net: mellanox: add DEVLINK dependencies 2016-03-03 17:08:59 -05:00
mad.c IB/mlx4: Add support for the port info class for RoCE ports 2016-02-17 10:07:20 -05:00
main.c IB/mlx4: Fix device managed flow steering support test 2016-06-06 19:31:51 -04:00
Makefile IB/mlx4: Add iov directory in sysfs under the ib device 2012-09-30 20:33:39 -07:00
mcg.c IB/mlx4: Fix unaligned access in send_reply_to_slave 2016-05-18 10:25:56 -04:00
mlx4_ib.h IB/core: Enhance ib_map_mr_sg() 2016-05-13 13:37:57 -04:00
mr.c IB/core: Enhance ib_map_mr_sg() 2016-05-13 13:37:57 -04:00
qp.c net/mlx4: Avoid wrong virtual mappings 2016-05-05 23:23:05 -04:00
srq.c Initial roundup of 4.5 merge window patches 2016-01-23 18:45:06 -08:00
sysfs.c IB/mlx4: Forbid using sysfs to change RoCE pkeys 2015-08-30 18:12:22 -04:00
user.h mlx4: 64-byte CQE/EQE support 2012-11-26 10:19:17 -08:00