aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2021-03-30 09:53:05 -0600
committerAlex Williamson <[email protected]>2021-04-06 11:55:09 -0600
commite572bfb2b6a83b05acd30c03010e661b1967960f (patch)
treece502bbb103ee1cc53e621e6c7dc13f9929a4e1d /scripts/gdb/linux/timerlist.py
parente49d033bddf5b565044e2abe4241353959bc9120 (diff)
vfio: Remove extra put/gets around vfio_device->group
The vfio_device->group value has a get obtained during vfio_add_group_dev() which gets moved from the stack to vfio_device->group in vfio_group_create_device(). The reference remains until we reach the end of vfio_del_group_dev() when it is put back. Thus anything that already has a kref on the vfio_device is guaranteed a valid group pointer. Remove all the extra reference traffic. It is tricky to see, but the get at the start of vfio_del_group_dev() is actually pairing with the put hidden inside vfio_device_put() a few lines below. A later patch merges vfio_group_create_device() into vfio_add_group_dev() which makes the ownership and error flow on the create side easier to follow. Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Reviewed-by: Eric Auger <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions