git: sys/vfs/tmpfs: Make flag handling consistent [1/2]

Tomohiro Kusumi tkusumi at
Fri May 8 12:40:30 PDT 2015

commit e6db94b29aacbd288774574b1967828c8c07c013
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Fri May 8 20:19:09 2015 +0900

    sys/vfs/tmpfs: Make flag handling consistent [1/2]
    - Not taking inode lock on if-test for inode status introduces
      a potential race.
    - Above race is basically harmless though since if-test itself
      was redundant and basically results the same with or without it.
      So get rid of it and keep the |= part with inode lock.

Summary of changes:
 sys/vfs/tmpfs/tmpfs_subr.c  |  1 +
 sys/vfs/tmpfs/tmpfs_vnops.c | 32 ++++++++++++--------------------
 2 files changed, 13 insertions(+), 20 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list