summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLinmao Li <lilinmao@kylinos.cn>2026-08-14 11:38:44 +0800
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-08-23 21:51:43 -0400
commit970f69b6bf71562df5afcefb89c77b4e971d68de (patch)
treeb685ac4ca0a742faf3cf23b1bbf053d134afe52f /tools/perf/scripts/python
parent0ec418204f23f0a1dfff79d5f6721080ec006042 (diff)
downloadlinux-next-970f69b6bf71562df5afcefb89c77b4e971d68de.tar.gz
linux-next-970f69b6bf71562df5afcefb89c77b4e971d68de.zip
scsi: leapraid: Balance host references for firmware log VMAs
leapraid_fw_mmap() keeps the Scsi_Host reference obtained while looking up the adapter for the lifetime of the initial VMA. The VMA close callback drops that reference. The open callback is also invoked when a VMA is duplicated or split, but it only increments mmap_refcnt. Since every corresponding close callback drops a host reference, cloning the mapping can release the host while another VMA still refers to the adapter. Take a host device reference for every VMA open and release the lookup reference once the initial mapping has acquired its own reference. Use get_device() because a VMA can be cloned after the host enters SHOST_DEL; an existing VMA still pins the host at that point and open cannot fail. Fixes: 5597088c9e79 ("scsi: leapraid: Add new SCSI driver") Signed-off-by: Linmao Li <lilinmao@kylinos.cn> Reviewed-by: Dongdong Hao <doubled@leap-io-kernel.com> Link: https://patch.msgid.link/20260814033845.2971706-2-lilinmao@kylinos.cn Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions