Re: [PATCH] xen-blkback: prevent premature module unload

From: JÃrgen GroÃ
Date: Fri Dec 13 2019 - 04:00:52 EST


On 10.12.19 15:53, Paul Durrant wrote:
Objects allocated by xen_blkif_alloc come from the 'blkif_cache' kmem
cache. This cache is destoyed when xen-blkif is unloaded so it is
necessary to wait for the deferred free routine used for such objects to
complete. This necessity was missed in commit 14855954f636 "xen-blkback:
allow module to be cleanly unloaded". This patch fixes the problem by
taking/releasing extra module references in xen_blkif_alloc/free()
respectively.

Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx>

Pushed to xen/tip.git for-linus-5.5b


Juergen