Messages in this thread | | | Date | Wed, 25 Nov 2015 12:24:56 +0100 | From | Matias Bjørling <> | Subject | Re: [PATCH] lightnvm: missing nvm_lock acquire |
| |
On 11/25/2015 09:57 AM, Wenwei Tao wrote: > Hi Matias > I think list_for_each_entry_safe(pos, n, head, member) cannot avoid > race condition > the item point by ‘n’ can be deleted and freed in the same time we > operate on 'pos' > so lock is still necessary.
You're right. Brainfart...
I'll apply it with the fixes that kbuild proposed.
| |