summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-softirq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-10-08 10:25:41 +0200
committerTejun Heo <tj@kernel.org>2015-10-12 19:23:13 +0200
commit2aa8f5d63d9183ab185364d4ce849566ede0f301 (patch)
tree75e01ce75cac1abcb883847c18500da83bdef645 /lib/locking-selftest-softirq.h
parentlibata: cleanup ata_scsi_qc_complete (diff)
downloadlinux-2aa8f5d63d9183ab185364d4ce849566ede0f301.tar.xz
linux-2aa8f5d63d9183ab185364d4ce849566ede0f301.zip
libata: only call ->done once all per-tag ressources are released
When calling ->done before releasing resources we could run into a race where the SCSI midlayer sends another command and races with the resources beeing manipulated. For libata this can't currently happen as synchronization happens at a higher level, but I'd still like to fix it to future proof libata and to avoid copy & paste into SCSI drivers where this pattern has led to reproducible crashes. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'lib/locking-selftest-softirq.h')
0 files changed, 0 insertions, 0 deletions