Re: [PATCH] lightnvm: missing nvm_lock acquire

From: Matias BjÃrling
Date: Wed Nov 25 2015 - 06:25:06 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/