PM: Fix pm_notifiers during user mode hibernation
authorAndrey Borzenkov <arvidjaar@mail.ru>
Sat, 14 Feb 2009 01:05:14 +0000 (02:05 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Feb 2009 22:17:17 +0000 (14:17 -0800)
commitebae2604f2c3693717d9dc687c84578f0526480c
treeb385e3b401ab8bc2f278aa36a03a639bf1ea61cd
parent0cb57258fe01e9b21076b6a15b6aec7a24168228
PM: Fix pm_notifiers during user mode hibernation

Snapshot device is opened with O_RDONLY during suspend and O_WRONLY durig
resume.  Make sure we also call notifiers with correct parameter telling
them what we are really doing.

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <gregkh@suse.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/power/user.c