[PATCH] device-mapper: make lock_fs optional
Devices only needs syncing when creating snapshots, so make this optional when suspending a device. Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
e39e2e95eb
commit
aa8d7c2fbe
@@ -700,7 +700,7 @@ static int do_suspend(struct dm_ioctl *param)
|
||||
return -ENXIO;
|
||||
|
||||
if (!dm_suspended(md))
|
||||
r = dm_suspend(md);
|
||||
r = dm_suspend(md, 1);
|
||||
|
||||
if (!r)
|
||||
r = __dev_status(md, param);
|
||||
@@ -738,7 +738,7 @@ static int do_resume(struct dm_ioctl *param)
|
||||
if (new_map) {
|
||||
/* Suspend if it isn't already suspended */
|
||||
if (!dm_suspended(md))
|
||||
dm_suspend(md);
|
||||
dm_suspend(md, 1);
|
||||
|
||||
r = dm_swap_table(md, new_map);
|
||||
if (r) {
|
||||
|
||||
Reference in New Issue
Block a user