Rafael J. Wysocki
25f2f3daad
snapshot: Use pm_mutex for mutual exclusion
...
We can avoid taking the BKL in snapshot_ioctl() if pm_mutex is used to prevent
the ioctls from being executed concurrently.
In addition, although it is only possible to open /dev/snapshot once, the task
which has done that may spawn a child that will inherit the open descriptor,
so in theory they can call snapshot_write(), snapshot_read() and
snapshot_release() concurrently. pm_mutex can also be used for mutual
exclusion in such cases.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-07-16 23:27:03 +02:00
..
2008-07-10 07:01:13 +02:00
2008-07-16 23:27:03 +02:00
2008-07-15 21:55:59 +02:00
2008-07-14 15:58:35 +02:00
2008-05-17 03:30:23 -04:00
2008-06-24 23:36:35 -04:00
2008-06-24 23:36:35 -04:00
2008-06-27 18:09:16 +02:00
2008-04-29 08:06:29 -07:00
2008-07-04 10:40:08 -07:00
2008-05-24 09:56:14 -07:00
2008-05-01 08:03:59 -07:00
2008-04-29 08:06:22 -07:00
2008-07-16 23:27:01 +02:00
2008-07-14 12:19:19 +02:00
2008-04-29 08:06:22 -07:00
2008-07-03 13:21:14 +02:00
2008-07-14 14:55:13 -07:00
2008-06-23 13:31:15 +02:00
2008-07-15 21:55:59 +02:00
2008-04-29 08:06:22 -07:00
2008-05-01 08:04:00 -07:00
2008-06-24 10:52:55 -05:00
2008-05-01 13:08:16 -04:00
2008-07-10 10:13:51 -07:00
2008-07-16 23:27:03 +02:00
2008-04-29 08:06:22 -07:00
2008-06-24 01:28:20 +02:00
2008-06-24 01:28:20 +02:00
2008-07-14 14:55:13 -07:00
2008-07-15 21:55:59 +02:00
2008-05-23 22:25:27 +02:00
2008-05-23 13:09:33 +10:00
2008-05-16 16:53:35 +02:00
2008-06-10 11:45:09 +02:00
2008-04-29 08:06:13 -07:00
2008-04-29 08:06:14 -07:00
2008-04-30 08:29:49 -07:00
2008-05-19 10:01:37 +02:00
2008-07-02 15:06:24 -06:00
2008-05-24 18:49:22 +02:00
2008-04-30 08:29:36 -07:00
2008-07-14 15:27:43 -07:00
2008-06-26 11:24:38 +02:00
2008-07-14 15:01:47 +10:00
2008-07-15 21:10:12 +02:00
2008-07-15 14:12:03 -07:00
2008-05-19 10:03:39 +02:00
2008-07-15 21:10:12 +02:00
2008-06-26 09:24:33 +02:00
2008-05-28 14:49:27 +02:00
2008-04-29 08:06:10 -07:00
2008-04-29 08:06:22 -07:00
2008-07-14 12:19:13 +02:00
2008-06-06 15:19:28 +02:00
2008-06-06 15:19:44 +02:00
2008-06-27 14:31:31 +02:00
2008-07-04 12:50:22 +02:00
2008-06-27 14:31:47 +02:00
2008-05-05 23:56:17 +02:00
2008-06-27 14:32:05 +02:00
2008-07-04 12:50:23 +02:00
2008-07-14 15:28:42 -07:00
2008-07-01 10:14:06 +02:00
2008-05-26 10:37:07 -07:00
2008-07-15 14:12:20 -07:00
2008-07-15 21:55:59 +02:00
2008-07-05 08:51:24 +02:00
2008-05-23 20:39:40 +02:00
2008-06-30 09:20:55 +02:00
2008-06-23 22:57:56 +02:00
2008-05-24 09:56:13 -07:00
2008-07-15 21:10:12 +02:00
2008-04-30 08:29:48 -07:00
2008-05-02 16:18:42 -07:00
2008-05-02 16:18:42 -07:00
2008-07-14 16:06:58 -07:00
2008-04-30 08:29:53 -07:00
2008-07-04 10:40:04 -07:00