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-05-01 08:03:59 -07:00
2008-06-24 10:52:55 -05:00
2008-05-01 13:08:16 -04:00
2008-07-16 23:27:03 +02:00
2008-07-02 15:06:24 -06:00
2008-05-23 20:39:40 +02:00
2008-04-30 08:29:53 -07:00
2008-07-04 10:40:04 -07:00