aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/sysfs.c
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2018-10-07 12:12:39 +0300
committerDoug Ledford <dledford@redhat.com>2018-10-16 14:09:44 -0400
commit60f1fc204940fc0352394866b2af0987fd5b2563 (patch)
tree537c6c40cf9a973479a8992a627cbe49fdbf79fb /drivers/infiniband/core/sysfs.c
parentRDMA/nldev: Allow IB device rename through RDMA netlink (diff)
downloadlinux-dev-60f1fc204940fc0352394866b2af0987fd5b2563.tar.xz
linux-dev-60f1fc204940fc0352394866b2af0987fd5b2563.zip
IB/mlx4: Refer to the device kobject instead of ports_parent
iov sysfs tree is created under ib device at /sys/class/infiniband/mlx4_0/iov. And, ibdev->ports_parent->parent = &ibdev->dev. Therefore, refer to device's kobject directly instead of indirect access to it. Additionally, iov entries are created under device kobject and deleted before device is removed. There is no need to hold additional reference to device kobject in provider driver. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/sysfs.c')
0 files changed, 0 insertions, 0 deletions