Re: [PATCH v2] scsi: core: Balance the pseudo target reap reference

From: Martin K. Petersen (Oracle)

Date: Fri Oct 30 2026 - 21:43:14 EST


On Tue, 27 Oct 2026 11:08:50 +0100, Giuseppe Piscitelli wrote:

> With memory allocation profiling enabled, unloading scsi_debug reports
> allocations left at module unload. A stock Linux 7.2.11 VM without OpenZFS
> emitted the following on each of three load/unload cycles:
>
> [ 1.644665] drivers/scsi/scsi_debug.c:8863 module scsi_debug func:sdebug_add_host_helper has 1024 allocated at module unload
> [ 1.656260] drivers/scsi/scsi_debug.c:1261 module scsi_debug func:sdebug_target_alloc has 16 allocated at module unload
>
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/1] scsi: core: Balance the pseudo target reap reference
https://git.kernel.org/mkp/scsi/c/8a832fb632da

--
Martin K. Petersen