]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Clean mr_cache debugfs in case of failure
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 30 May 2017 06:44:48 +0000 (09:44 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 18 Jul 2017 01:21:25 +0000 (21:21 -0400)
commitc400631acfb13f16a89b75a384f3807c0a7639e9
tree6e65d775351fe927e25e70677a2f65bfcf7ee6c1
parent78d906542d6dbb8d3f2d77773609cf341611c84c
IB/mlx5: Clean mr_cache debugfs in case of failure

The failure in creation of debugfs entries for mr_cache left entries,
which were already created.

It caused to mismatch and misguiding for the end users. The solution
is to clean mr_cache debugfs root, so no leftovers will be in the
system. In addition, let's document why the error is not needed to be
forwarded to user in case of failure.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c