staging/rdma/hfi1: Fix debugfs access race
authorDean Luick <dean.luick@intel.com>
Thu, 18 Feb 2016 19:12:25 +0000 (11:12 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:44 +0000 (20:45 -0500)
commited6f653fe430ed4912aebec10a1b9d57813fe44c
treeccaa4092af6c120ee5eae1f245ed55274d6110a5
parente8aa284ba0cd2a1b6bfb3181a5b3b7f0bdefbe1a
staging/rdma/hfi1: Fix debugfs access race

Debugfs access races with the driver being ready.  Make sure the
driver is ready before debugfs files appear and debufs files are
gone before the driver starts tearing down.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/init.c