JFFS2: Fix race on read access to NAND write-buffer.
With SMP or preempt, we could attempt to read data from the wbuf while it was being updated. Introduce a new rwsem to prevent this, and update the documentation accordingly Signed-off-by: Artem Bityuckiy <dedekind@infradead.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Showing
Please register or sign in to comment