Page MenuHomeFreeBSD

VOP_FSYNC(): always require the locked vnode
Needs ReviewPublic

Authored by kib on Wed, Sep 23, 5:00 PM.

Details

Reviewers
markj
jah
olce
Summary
g_vfs_close_unlocked(9): wrapper around g_vfs_close(9)

that locks both bo vnode and topology.


filesystems: use g_vfs_close_unlocked(9)

As result, we lock the devvp vnode around calls to VOP_FSYNC() on
unmount. For instance, the vn_fsync_buf() implementation of fsync()
needs exclusive lock on the vnode to guarantee that all dirty buffers
are indeed synced.


VFS: require locked vnode for fsync()

Stop exempting devfs nodes.

Tested by:      pho

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped