• Kirill Smelkov's avatar
    bigfile/virtmem: Don't forget to release fileh->writeout_inprogress on storeblk error · 87bf4908
    Kirill Smelkov authored
    Commit fb4bfb32 (bigfile/virtmem: Do storeblk() with virtmem lock
    released) added bug-protection to fileh_dirty_writeout() so that it could
    not be called twice at the same time or in parallel with other functions
    which modify pages.
    
    However it missed the code path when storeblk() call returned with error
    and whole writeout was thus erroring out, but with fileh->writeout_inprogress
    still left set to 1 incorrectly.
    
    This was leading to things like
    
        bigfile/virtmem.c:419: fileh_dirty_discard: Assertion `!(fileh->writeout_inprogress)' failed.
    
    and crashes.
    
    Fix it.
    87bf4908
Name
Last commit
Last update
3rdparty Loading commit data...
bigarray Loading commit data...
bigfile Loading commit data...
demo Loading commit data...
include/wendelin Loading commit data...
lib Loading commit data...
t Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
CHANGELOG.rst Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
wendelin.py Loading commit data...