summaryrefslogtreecommitdiffstats
path: root/LOCKS
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-11-11 11:54:01 +0000
committerkib <kib@FreeBSD.org>2010-11-11 11:54:01 +0000
commitdadf5cd065f60f3861c85cdb6b3ee94517f2c17e (patch)
treeab55c9eb27288320841718635a55e3cdfc9b006f /LOCKS
parent59d1af232220700389c3543e93e1b1f2e2619919 (diff)
downloadFreeBSD-src-dadf5cd065f60f3861c85cdb6b3ee94517f2c17e.zip
FreeBSD-src-dadf5cd065f60f3861c85cdb6b3ee94517f2c17e.tar.gz
The softdep_setup_freeblocks() adds worklist items before
deallocate_dependencies() is done. This opens a race between softdep thread and the thread that does the truncation: A write of the indirect block causes the freeblks to become ALLCOMPLETE while softdep_setup_freeblocks() dropped softdep lock. And then, softdep_disk_write_complete() would reassign the workitem to the mount point worklist, causing premature processing of the workitem, or journal write exhaust the fb_jfreeblkhd and handle_written_jfreeblk does the same reassign. indir_trunc() then would find the indirect block that is locked (with lock owned by kernel) but without any dependencies, causing it to hang in getblk() waiting for buffer lock. Do not mark freeblks as DEPCOMPLETE until deallocate_dependencies() finished. Analyzed, suggested and reviewed by: jeff Tested by: pho
Diffstat (limited to 'LOCKS')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud