diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-17 17:56:45 (GMT) |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-10-24 03:21:39 (GMT) |
commit | 0c2cfe5fe78e682d6235a1d32a363460b1c77528 (patch) | |
tree | fae9d86d8415ea163a49df6bf290aaef8901702e /drivers/net/sfc/bitfield.h | |
parent | b7b8bef7f8c1c9b3358127608e867db7cd928022 (diff) | |
download | linux-fsl-qoriq-0c2cfe5fe78e682d6235a1d32a363460b1c77528.tar.xz |
target: fix list walking in transport_free_dev_tasks
list_for_each_entry_safe only protects against deletions from the list,
but not against any concurrent modifications. Given that we drop
t_state_lock inside the loop it is not safe in transport_free_dev_tasks.
Instead of use a local dispose_list that we move all tasks that are
to be deleted to. This is safe because we never do list_emptry checks
on t_list to check if a command is on the list anywhere.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/net/sfc/bitfield.h')
0 files changed, 0 insertions, 0 deletions