• Linus Torvalds's avatar
    Fix close() vs posix lock race · b044105d
    Linus Torvalds authored
    A threaded app that posix-locks and closes the same file
    in two threads concurrently may result in a posix lock
    that was never visible to the closer, and that thus needs
    cleanup on the final fput.
    
    Handle it together with the regular flocks.
    b044105d
locks.c 51.7 KB