OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 08:35:27 +0000 (09:35 +0100)
commite143f5d262580021b2452398f92692e76ae8cf73
tree643d5c875c13ede68a5b81befede1ec36f23c143
parentc4eafbc2ba115bf6a4dbbc12874e16aa7f0c7283
locks: don't check for race with close when setting OFD lock

commit 0752ba807b04ccd69cb4bc8bbf829a80ee208a3c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mel Gorman <mgorman@suse.de>
fs/locks.c