mlx5: Keep polling to reclaim pages while any returned
authorEli Cohen <eli@mellanox.com>
Wed, 11 Sep 2013 13:35:28 +0000 (16:35 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 10 Oct 2013 16:23:57 +0000 (09:23 -0700)
commitdabed0e6319a1900c8738676bd197f06b5b5b6cc
tree3922f49b017b888e29efc5e35ccbf697ac057623
parenta0c84c326f720c3e3ebb9c49cbce916c05a57297
mlx5: Keep polling to reclaim pages while any returned

Change mlx5_reclaim_startup_pages() to keep polling while any pages
are returned.  If none are returned, keep polling for five more seconds
before exiting with an error message.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c