]> 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)
commit12cc1a027341338f54d8d3fcf5d188ae2b39c30d
tree6e65d775351fe927e25e70677a2f65bfcf7ee6c1
parent7855f5842741e5835b9be073079780c444dca898
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