pciehp: use delayed_work private data to pass pending events
euler inclusion
category: bugfix
bugzilla: NA
CVE: NA
---------------------------
We use 'work_struct' private data to pass the pending events when we
schedule a 'delayed_work' in the following commit.
764cafd9875e ("pciehp: fix a race between pciehp and removing operations
by sysfs")
But workqueue framework will use this member, such as workqueue core
function 'set_work_pool_and_keep_pending()'. This patch add a new member
in 'struct delayed_work' and use this member to pass the pending events.
This patch also add more debug info.
Fixes: 764cafd9875e ("pciehp: fix a race between pciehp and removing
operations by sysfs")
Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NYao Hongbo <yaohongbo@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录