]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: No need to use try_module_get for debugfs
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Fri, 28 Jun 2019 18:22:46 +0000 (14:22 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Sat, 29 Jun 2019 01:34:26 +0000 (22:34 -0300)
commitcb0feef9eed907d3437791d828d0a7b657860ebc
treec43d38529fc6020f2b85f45a929144d2d7625e22
parent5b225f31283418bcc8b7bce0b204574d21104425
IB/hfi1: No need to use try_module_get for debugfs

The call in debugfs.c for try_module_get() is not needed. A reference to
the module will be taken by the VFS layer as long as the owner field is
set in the file ops struct. So set this as well as remove the call.

Suggested-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/debugfs.c