]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/hfi1: Remove kobj from hfi1_devdata
authorKaike Wan <kaike.wan@intel.com>
Mon, 16 Mar 2020 21:05:00 +0000 (17:05 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 18 Mar 2020 22:53:47 +0000 (19:53 -0300)
commit5ab17a24cb82a636e80c62386dcf1676cbcabaf1
tree3a80e2e25f1490d8fe92a2a49c09aa2e7498d1b4
parentd61ba1b9aefe88f0c296e7c627d4946ac2a6c324
IB/hfi1: Remove kobj from hfi1_devdata

The field kobj was added to hfi1_devdata structure to manage the life time
of the hfi1_devdata structure for PSM accesses:

commit e11ffbd57520 ("IB/hfi1: Do not free hfi1 cdev parent structure early")

Later another mechanism user_refcount/user_comp was introduced to provide
the same functionality:

commit acd7c8fe1493 ("IB/hfi1: Fix an Oops on pci device force remove")

This patch will remove this kobj field, as it is no longer needed.

Link: https://lore.kernel.org/r/20200316210500.7753.4145.stgit@awfm-01.aw.intel.com
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/init.c