summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorge Amanakis <[email protected]>2020-07-10 17:10:03 -0400
committerGitHub <[email protected]>2020-07-10 14:10:03 -0700
commit2054f35e564b59e23950ee573e91dbae3fd2ccd9 (patch)
tree4b20615c035987145b91ef772f8744af1a6f2fc4 /lib
parentd2bce6d036b38893b8d46fb3cd97fc8183967c34 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: George Amanakis <[email protected]> Closes #10540 Closes #10543
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions