]> git.hungrycats.org Git - linux/commit
Fix close() vs posix lock race
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 2 Oct 2004 08:54:05 +0000 (01:54 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 2 Oct 2004 08:54:05 +0000 (01:54 -0700)
commitb044105d87dd8d82a3c5a095410dcee78a8b6457
treea4fb973031681d95644a7e1b370cfd41896f13d2
parentcf54a5af68a371d83b0aa0e4c14fc01dc4f09c45
Fix close() vs posix lock race

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.
fs/locks.c