NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52301: lfs deadlock between lfs_fsync and lfs_create



The following reply was made to PR kern/52301; it has been noted by GNATS.

From: coypu%sdf.org@localhost
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/52301: lfs deadlock between lfs_fsync and lfs_create
Date: Mon, 19 Jun 2017 12:18:10 +0000

 lfs_fcntl:
 
             case LFCNRECLAIM:
                 /*
                  * Flush dirops and write Ifile, allowing empty segments
                  * to be immediately reclaimed.
                  */
                 lfs_writer_enter(fs, "pndirop");
                 off = lfs_sb_getoffset(fs);
                 lfs_seglock(fs, SEGM_FORCE_CKP | SEGM_CKP);
                 lfs_flush_dirops(fs);
                 LFS_CLEANERINFO(cip, fs, bp);
                 oclean = lfs_ci_getclean(fs, cip);
                 LFS_SYNC_CLEANERINFO(cip, fs, bp, 1);
                 lfs_segwrite(ap->a_vp->v_mount, SEGM_FORCE_CKP);
                 fs->lfs_sp->seg_flags |= SEGM_PROT;
                 lfs_segunlock(fs);
                 lfs_writer_leave(fs);
 


Home | Main Index | Thread Index | Old Index