Jeff Layton
d7a06983a0
locks: fix locks_mandatory_locked to respect file-private locks
...
As Trond pointed out, you can currently deadlock yourself by setting a
file-private lock on a file that requires mandatory locking and then
trying to do I/O on it.
Avoid this problem by plumbing some knowledge of file-private locks into
the mandatory locking code. In order to do this, we must pass down
information about the struct file that's being used to
locks_verify_locked.
Reported-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: J. Bruce Fields <bfields@redhat.com>
2014-03-31 08:24:43 -04:00
..
2013-09-11 15:58:03 -07:00
2014-01-23 16:36:50 -08:00
2013-11-13 12:09:09 +09:00
2013-11-23 22:33:49 -08:00
2014-01-23 16:36:50 -08:00
2014-01-23 16:36:53 -08:00
2011-12-06 09:24:07 +01:00
2012-12-11 17:22:24 -08:00
2013-03-03 22:46:22 -05:00
2012-01-03 22:54:56 -05:00
2013-11-06 12:40:26 +01:00
2014-01-28 08:38:04 -08:00
2014-01-02 14:40:30 -08:00
2013-06-12 16:29:46 -07:00
2012-12-20 08:37:05 -08:00
2014-01-27 21:03:39 -08:00
2014-01-23 16:36:50 -08:00
2014-01-23 16:36:50 -08:00
2014-01-21 16:19:48 -08:00
2011-07-26 16:49:47 -07:00
2014-01-29 16:22:39 -08:00
2012-10-09 16:22:42 +09:00
2014-01-30 16:56:55 -08:00
2012-01-10 16:30:42 -08:00
2011-01-27 18:31:51 +00:00
2013-11-13 12:09:07 +09:00
2014-01-23 16:36:52 -08:00
2013-10-30 12:57:46 -07:00
2011-10-31 09:20:12 -04:00
2013-09-30 14:31:02 -07:00
2014-01-30 16:56:55 -08:00
2014-01-29 16:22:40 -08:00
2014-01-30 16:56:56 -08:00
2014-01-23 16:36:52 -08:00
2014-01-23 16:36:52 -08:00
2014-01-23 16:36:50 -08:00
2014-01-30 16:56:56 -08:00
2013-09-11 15:58:14 -07:00
2014-01-27 21:02:40 -08:00
2014-01-23 16:36:52 -08:00
2014-01-23 16:36:50 -08:00
2014-01-27 21:02:39 -08:00
2014-03-31 08:24:43 -04:00
2013-05-07 18:38:27 -07:00
2014-01-23 16:36:52 -08:00
2013-10-09 14:47:45 +02:00
2014-01-21 16:19:48 -08:00
2013-10-16 21:35:53 -07:00
2014-01-23 16:36:52 -08:00
2014-03-31 08:24:43 -04:00
2014-01-30 16:56:56 -08:00
2014-01-23 16:36:52 -08:00
2014-01-21 19:05:45 -08:00
2014-01-30 11:19:05 -08:00
2013-09-11 15:57:48 -07:00
2014-01-29 16:22:39 -08:00
2013-10-30 14:27:03 -07:00
2012-06-20 14:39:36 -07:00
2014-01-21 19:05:45 -08:00
2013-12-18 19:04:51 -08:00
2013-03-12 11:05:45 -07:00
2011-10-31 09:20:11 -04:00
2014-01-29 16:22:40 -08:00
2014-01-23 16:36:53 -08:00
2014-01-28 08:38:04 -08:00
2014-01-29 16:22:40 -08:00
2014-01-31 13:52:25 +02:00
2014-01-23 16:36:51 -08:00
2013-09-04 20:51:33 +03:00
2014-02-02 11:30:08 -08:00
2014-01-21 16:19:47 -08:00
2014-01-21 16:19:47 -08:00
2014-01-23 16:36:50 -08:00
2014-01-23 16:36:50 -08:00
2014-01-23 16:36:53 -08:00
2013-09-12 15:38:02 -07:00
2014-01-21 16:19:44 -08:00
2014-01-27 21:02:39 -08:00
2013-11-22 18:20:43 -05:00
2014-01-29 16:22:39 -08:00
2013-11-13 12:09:11 +09:00
2013-09-11 15:57:35 -07:00
2014-01-30 16:56:55 -08:00
2014-01-23 16:36:50 -08:00