<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi,<br><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">I did a test like this(smp system):<br>mount -t jffs2 /dev/mtdblock1 /mnt<br>mount -t jffs2 /dev/mtdblock2 /tmp<br>Then I write data to /mnt/file1, /tmp/file2 simultaneously, It's very often to see<br>a oops says 'comprbuf is NULL in ./fs/jffs2/write.c, line 376'.<br><br>In the jffs2 file system menuconfig, I enable the option 'Advanced compression option for JFFS2'.<br>It turns out that thread A malloc and use the buffer in the jffs2_compressor_list,&nbsp; at the same time thread B can also use the<br>same buffer because of spin_unlock(&amp;jffs2_compressor_list_lock).<br>Thread B get the best buffer pointer and change the best pointer to NULL.&nbsp; Thread A's best buffer pointer became NULL too, so oops happens.<br></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>