diff options
author | Christoph Hellwig <hch@lst.de> | 2015-10-08 10:25:41 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-10-12 13:23:13 -0400 |
commit | 2aa8f5d63d9183ab185364d4ce849566ede0f301 (patch) | |
tree | 75e01ce75cac1abcb883847c18500da83bdef645 /lib/cpumask.c | |
parent | 25c7ce7f7b511fc02b6eef95595af2cea80e2612 (diff) | |
download | op-kernel-dev-2aa8f5d63d9183ab185364d4ce849566ede0f301.zip op-kernel-dev-2aa8f5d63d9183ab185364d4ce849566ede0f301.tar.gz |
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/cpumask.c')
0 files changed, 0 insertions, 0 deletions