summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2020-02-13 16:32:05 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2020-02-24 14:54:24 -0500
commit66167283c21ef8ce35253397108263bdab258992 (patch)
treec8165e7f672be42e2c67d4b1f2c6b5bc7b5d0ee0 /tools/perf/scripts/python/bin
parent1939295a8dfa7be1cea478d6d7d283c091b780d4 (diff)
downloadlinux-66167283c21ef8ce35253397108263bdab258992.tar.gz
linux-66167283c21ef8ce35253397108263bdab258992.zip
scsi: ch: fixup refcounting imbalance for SCSI devices
The SCSI device is required to be present during ch_probe() and ch_open(). But the SCSI device itself is only checked during ch_open(), so it's anyones guess if it had been present during ch_probe(). And consequently we can't reliably detach it during ch_release(), as ch_remove() might have been called first. So initialize the changer device during ch_probe(), and take a reference to the SCSI device during both ch_probe() and ch_open(). [mkp: fixed checkpatch warning] Link: https://lore.kernel.org/r/20200213153207.123357-2-hare@suse.de Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions