diff options
author | Dan Williams <dan.j.williams@intel.com> | 2023-09-29 14:44:46 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-20 11:59:30 +0100 |
commit | f5355d4e48a6f29c77ac10c487df079d83a3fedc (patch) | |
tree | 8c3ba49ab6fb486524394e0dbc8dc9a54cd943e9 /arch | |
parent | e5a8fc34283e6488c000c33bbcf186f2ec254fd0 (diff) | |
download | linux-stable-f5355d4e48a6f29c77ac10c487df079d83a3fedc.tar.gz linux-stable-f5355d4e48a6f29c77ac10c487df079d83a3fedc.tar.bz2 linux-stable-f5355d4e48a6f29c77ac10c487df079d83a3fedc.zip |
cxl/pci: Remove unnecessary device reference management in sanitize work
[ Upstream commit 76fe8713dd0a1331d84d767e8e5d3f365d959e8a ]
Given that any particular put_device() could be the final put of the
device, the fact that there are usages of cxlds->dev after
put_device(cxlds->dev) is a red flag. Drop the reference counting since
the device is pinned by being registered and will not be unregistered
without triggering the driver + workqueue to shutdown.
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Stable-dep-of: 5f2da1971446 ("cxl/pci: Fix sanitize notifier setup")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions