Wengang Wang
e228f64398
ocfs2: flock: drop cross-node lock when failed locally
...
ocfs2_do_flock() calls ocfs2_file_lock() to get the cross-node clock and
then call flock_lock_file_wait() to compete with local processes. In
case flock_lock_file_wait() failed, say -ENOMEM, clean up work is not
done. This patch adds the cleanup --drop the cross-node lock which was
just granted.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-03 16:20:56 -07:00
..
2014-04-03 16:20:55 -07:00
2014-04-03 16:20:55 -07:00
2014-01-21 16:19:41 -08:00
2014-04-03 16:20:56 -07:00
2014-01-25 23:58:21 -05:00
2014-04-03 16:20:56 -07:00
2011-05-23 23:37:18 -07:00
2014-04-03 16:20:53 -07:00
2014-04-03 16:20:53 -07:00
2012-05-29 23:28:35 -04:00
2009-06-03 19:15:36 -07:00
2014-04-03 16:20:56 -07:00
2009-09-04 16:07:48 -07:00
2014-04-03 16:20:55 -07:00
2014-04-03 16:20:55 -07:00
2014-04-03 16:20:56 -07:00
2013-06-29 12:57:02 +04:00
2014-04-03 16:20:55 -07:00
2014-04-03 16:20:55 -07:00
2013-02-26 02:46:10 -05:00
2007-10-22 08:13:21 -07:00
2013-09-11 15:56:53 -07:00
2011-07-25 14:58:15 -07:00
2014-04-03 16:20:56 -07:00
2011-07-20 01:43:24 -04:00
2011-02-23 21:17:39 +08:00
2008-04-18 08:56:04 -07:00
2014-04-03 16:20:55 -07:00
2014-04-03 16:20:54 -07:00
2014-01-21 16:19:42 -08:00
2010-03-02 14:10:20 -08:00
2014-04-03 16:20:54 -07:00
2014-04-03 16:20:53 -07:00
2011-01-16 21:22:40 +00:00
2014-02-06 13:48:51 -08:00
2014-02-06 13:48:51 -08:00
2014-04-03 16:20:56 -07:00
2008-10-13 13:57:57 -07:00
2014-01-21 16:19:41 -08:00
2013-02-26 02:46:10 -05:00
2014-04-03 16:20:56 -07:00
2011-05-25 15:17:12 +08:00
2014-04-03 16:20:56 -07:00
2009-09-22 20:09:48 -07:00
2008-02-03 17:33:42 +02:00
2011-04-26 23:31:11 -07:00
2011-05-25 15:17:08 +08:00
2009-09-22 20:09:28 -07:00
2010-02-26 15:41:18 -08:00
2013-09-11 15:56:28 -07:00
2014-04-03 16:20:55 -07:00
2014-04-03 16:20:54 -07:00
2014-03-04 07:55:48 -08:00
2014-04-03 16:20:54 -07:00
2014-01-25 23:58:21 -05:00
2013-08-13 17:57:49 -07:00
2011-02-23 22:10:56 +08:00
2011-03-31 11:26:23 -03:00
2013-11-13 12:09:01 +09:00
2008-01-25 15:04:24 -08:00
2011-07-24 10:34:54 -07:00
2008-04-18 08:56:03 -07:00
2014-01-21 16:19:41 -08:00
2014-01-21 16:19:42 -08:00
2014-04-03 16:20:54 -07:00
2014-01-21 16:19:41 -08:00
2014-04-03 16:20:56 -07:00
2014-01-21 16:19:42 -08:00
2014-04-03 16:20:55 -07:00
2011-10-31 17:30:54 -07:00
2013-02-26 02:46:12 -05:00
2012-05-29 23:28:40 -04:00
2013-02-21 17:22:19 -08:00
2011-02-24 16:22:20 +08:00
2009-09-04 16:07:50 -07:00
2014-04-03 16:20:56 -07:00
2014-01-25 23:58:21 -05:00