net/mlx5: Fix incorrect page count when in internal error
authorDaniel Jurgens <danielj@mellanox.com>
Thu, 30 Jun 2016 14:34:40 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 10:12:03 +0000 (06:12 -0400)
commit5adff6a0886273eb426360400f120443833760a3
tree67173eff6c23ce62903dd3ed8731ab7529eea5e5
parentc1d4d2e92ad670168a17a57dfa182a5a5baa72d4
net/mlx5: Fix incorrect page count when in internal error

Change page cleanup flow when in internal error to properly decrement
the page counts when reclaiming pages.  The prevents timing out waiting
for extra pages that were actually cleaned up previously.

fixes: 89d44f0a6c73 ('net/mlx5_core: Add pci error handlers to mlx5_core driver')
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c