aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-ioctl.c
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2006-01-06 03:20:06 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:34:01 -0500
commitaa8d7c2fbe619d8c0837296d2eaf4c14cebac198 (patch)
tree88b63e397b0c2dbdf2b8feb3920d565d352412d6 /drivers/md/dm-ioctl.c
parente39e2e95eb8bd536b61654e8fda1516d0a6a3cd1 (diff)
[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>
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r--drivers/md/dm-ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 3e327db57310..dbc07afd4462 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -700,7 +700,7 @@ static int do_suspend(struct dm_ioctl *param)
700 return -ENXIO; 700 return -ENXIO;
701 701
702 if (!dm_suspended(md)) 702 if (!dm_suspended(md))
703 r = dm_suspend(md); 703 r = dm_suspend(md, 1);
704 704
705 if (!r) 705 if (!r)
706 r = __dev_status(md, param); 706 r = __dev_status(md, param);
@@ -738,7 +738,7 @@ static int do_resume(struct dm_ioctl *param)
738 if (new_map) { 738 if (new_map) {
739 /* Suspend if it isn't already suspended */ 739 /* Suspend if it isn't already suspended */
740 if (!dm_suspended(md)) 740 if (!dm_suspended(md))
741 dm_suspend(md); 741 dm_suspend(md, 1);
742 742
743 r = dm_swap_table(md, new_map); 743 r = dm_swap_table(md, new_map);
744 if (r) { 744 if (r) {