public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] firmware_loader: Fix shutdown ordering and reference counting
@ 2026-03-31 21:47 Dan Williams
  2026-03-31 21:47 ` [PATCH 1/3] firmware_loader: Stop pinning modules on registration Dan Williams
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dan Williams @ 2026-03-31 21:47 UTC (permalink / raw)
  To: mcgrof, russ.weight, dakr
  Cc: linux-kernel, Chao Gao, Greg Kroah-Hartman, Rafael J. Wysocki

Chao Gao raised a module reference circular dependency report resulting
from *correct* usage of the firmware_upload_register() API [1]. The
module reference count is not necessary nor sufficient for protecting
against racing unregister against in-flight requests. After that is
fixed, a couple more cleanups fall out.

[1]: https://sashiko.dev/#/patchset/20260326084448.29947-1-chao.gao%40intel.com?patch=10705


Dan Williams (3):
  firmware_loader: Stop pinning modules on registration
  firmware_loader: Stop pinning parent device per workqueue invocation
  treewide: firmware_loader: Drop the unused @module argument

 .../driver-api/firmware/fw_upload.rst         |  2 +-
 include/linux/firmware.h                      | 15 +++---
 drivers/base/firmware_loader/sysfs_upload.c   | 48 ++++++++-----------
 drivers/cxl/core/memdev.c                     |  4 +-
 drivers/firmware/microchip/mpfs-auto-update.c |  2 +-
 drivers/fpga/intel-m10-bmc-sec-update.c       |  4 +-
 drivers/greybus/gb-beagleplay.c               |  2 +-
 drivers/media/i2c/thp7312.c                   |  2 +-
 drivers/net/pse-pd/pd692x0.c                  |  4 +-
 lib/test_firmware.c                           |  3 +-
 10 files changed, 38 insertions(+), 48 deletions(-)


base-commit: f338e77383789c0cae23ca3d48adcc5e9e137e3c
-- 
2.53.0


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

end of thread, other threads:[~2026-04-08  2:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 21:47 [PATCH 0/3] firmware_loader: Fix shutdown ordering and reference counting Dan Williams
2026-03-31 21:47 ` [PATCH 1/3] firmware_loader: Stop pinning modules on registration Dan Williams
2026-03-31 21:47 ` [PATCH 2/3] firmware_loader: Stop pinning parent device per workqueue invocation Dan Williams
2026-03-31 21:47 ` [PATCH 3/3] treewide: firmware_loader: Drop the unused @module argument Dan Williams
2026-04-07 19:24 ` [PATCH 0/3] firmware_loader: Fix shutdown ordering and reference counting Russ Weight
2026-04-08  2:26   ` Chao Gao
2026-04-08  2:34     ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox