Re: [PATCH] ublk: pin module while release work is pending
From: Jens Axboe
Date: Fri Oct 16 2026 - 10:43:42 EST
On Thu, 15 Oct 2026 21:06:54 +0900, sonotri wrote:
> ublk_ch_release() takes a device reference and queues exit_work. The VFS
> module reference held through the file operations is dropped after
> ->release() returns. A queued work item does not acquire its own module
> reference for the callback.
>
> Consequently, normal module removal can start while exit_work is pending or
> executing. In addition to the worker callback itself, the final device put
> can invoke ublk_cdev_rel(), which is also module code.
>
> [...]
Applied, thanks!
[1/1] ublk: pin module while release work is pending
commit: afc9cde716b29ce814798d649a95f9128ba42b43
Best regards,
--
Jens Axboe