]> 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)
commit848293625d0aabddab83a91929583d23c167d7c0
tree6e65d775351fe927e25e70677a2f65bfcf7ee6c1
parentab884f873bef5473b4503ddf9042d7e90410080f
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