locks: don't check for race with close when setting OFD lock
authorJeff Layton <jeff.layton@primarydata.com>
Fri, 8 Jan 2016 12:30:43 +0000 (07:30 -0500)
committerJeff Layton <jeff.layton@primarydata.com>
Fri, 8 Jan 2016 16:38:07 +0000 (11:38 -0500)
commit0752ba807b04ccd69cb4bc8bbf829a80ee208a3c
treee74312e3335b7241a2c373bb2c076b73c1f9cda0
parent7f3697e24dc3820b10f445a4a7d914fc356012d1
locks: don't check for race with close when setting OFD lock

We don't clean out OFD locks on close(), so there's no need to check
for a race with them here. They'll get cleaned out at the same time
that flock locks are.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Acked-by: "J. Bruce Fields" <bfields@fieldses.org>
fs/locks.c