netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix usage counter leak by adding a general sync ops
@ 2020-11-09  8:09 Zhang Qilong
  2020-11-09  8:09 ` [PATCH 1/2] PM: runtime: Add a general runtime get sync operation to deal with usage counter Zhang Qilong
  2020-11-09  8:09 ` [PATCH 2/2] net: fec: Fix reference count leak in fec series ops Zhang Qilong
  0 siblings, 2 replies; 9+ messages in thread
From: Zhang Qilong @ 2020-11-09  8:09 UTC (permalink / raw)
  To: rjw, fugang.duan, davem, kuba; +Cc: linux-pm, netdev

Many caller forget to decrease the usage counter when call
pm_runtime_get_sync. This problem has been discussed in detail,
[0][1] and we add gene_pm_runtime_get_sync ops to deal with usage
counter for better coding. Then, we replace pm_runtime_get_sync
with it in fec_main.c

[0]https://lkml.org/lkml/2020/6/14/88
[1]https://patchwork.ozlabs.org/project/linux-tegra/patch/20200520095148.10995-1-dinghao.liu@zju.edu.cn/

Zhang Qilong (2):
  PM: runtime: Add a general runtime get sync operation to deal with
    usage counter
  net: fec: Fix reference count leak in fec series ops

 drivers/net/ethernet/freescale/fec_main.c | 10 +++----
 include/linux/pm_runtime.h                | 32 +++++++++++++++++++++++
 2 files changed, 37 insertions(+), 5 deletions(-)

-- 
2.25.4


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-11-09 14:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09  8:09 [PATCH 0/2] Fix usage counter leak by adding a general sync ops Zhang Qilong
2020-11-09  8:09 ` [PATCH 1/2] PM: runtime: Add a general runtime get sync operation to deal with usage counter Zhang Qilong
2020-11-09 12:59   ` Rafael J. Wysocki
2020-11-09 13:24     ` 答复: " zhangqilong
2020-11-09 13:28       ` Rafael J. Wysocki
2020-11-09 13:45         ` 答复: " zhangqilong
2020-11-09 14:07           ` Rafael J. Wysocki
2020-11-09 14:19             ` 答复: " zhangqilong
2020-11-09  8:09 ` [PATCH 2/2] net: fec: Fix reference count leak in fec series ops Zhang Qilong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).