mirror_zfs/module
George Amanakis 2054f35e56
Fix a persistent L2ARC bug in l2arc_write_done()
In case l2arc_write_done() handles a zio that was not successful check
that the list of log block pointers is not empty when restoring them
in the device header. Otherwise zero them out. In any case perform the
actual write updating the device header after the zio of
l2arc_write_buffers() completes as l2arc_write_done() may have touched
the memory holding the log block pointers in the device header.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #10540 
Closes #10543
2020-07-10 14:10:03 -07:00
..
avl Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
icp Make Skein_{Get,Put}64_LSB_First inline functions 2020-06-18 12:21:38 -07:00
lua Switch off -Wmissing-prototypes for libgcc math functions 2020-06-18 12:21:46 -07:00
nvpair Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
os Fix a deadlock in the FreeBSD getpages VOP 2020-07-06 11:53:57 -07:00
spl Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
unicode Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
zcommon Add device rebuild feature 2020-07-03 11:05:50 -07:00
zfs Fix a persistent L2ARC bug in l2arc_write_done() 2020-07-10 14:10:03 -07:00
.gitignore Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
Kbuild.in Move zfs_gitrev.h to build directory 2020-06-24 18:19:28 -07:00
Makefile.bsd Add device rebuild feature 2020-07-03 11:05:50 -07:00
Makefile.in Include FreeBSD sources in module dist 2020-06-26 14:19:35 -07:00