Le 12.07.2005 23:24, Alasdair G Kergon wrote:
> This section got lost while refactoring the 'Fix deadlocks in core' set
> of patches I sent yesterday.  Without it, you'll have problems
> activating any device-mapper devices.
>
> The NULL detection is moved inside the functions instead of every
> caller having to do it.
>
> --- drivers/md/dm-table.c     2005-07-12 22:10:20.000000000 +0100
> +++ /data/kernels/pm-2612udm1/source/drivers/md/dm-table.c    2005-07-06 
> 18:52:18.000000000 +0100
> @@ -869,11 +869,17 @@
>
>  void dm_table_presuspend_targets(struct dm_table *t)
>  {
> +     if (!t)
> +             return;
> +
>       return suspend_targets(t, 0);
>  }
>
>  void dm_table_postsuspend_targets(struct dm_table *t)
>  {
> +     if (!t)
> +             return;
> +
>       return suspend_targets(t, 1);
>  }
>

Ok, it seems that it works well now.

[EMAIL PROTECTED] ~]# cat /proc/version
Linux version 2.6.13-rc2-mm2 ([EMAIL PROTECTED]) (gcc version 3.4.3 
(Mandrakelinux 10.2 3.4.3-7mdk)) #104 Tue Jul 12 19:16:28 CEST 2005
[EMAIL PROTECTED] ~]# dmsetup table
vglinux1-lvhome: 0 7340032 linear 3:4 4604288
vglinux1-lvhome: 7340032 1048576 linear 3:4 14655872
vglinux1-lvtmp: 0 106496 linear 3:4 13238656
vglinux1-lvusr: 0 4194304 linear 3:4 409984
vglinux1-lvusr: 4194304 212992 linear 3:4 11944320
vglinux1-lvusr: 4407296 835584 linear 3:4 12403072
vglinux1-lvvar: 0 409600 linear 3:4 384
vglinux1-lvvar: 409600 245760 linear 3:4 12157312
crypt-swap2: 0 1590434 crypt aes-cbc-plain 
ad79bd09a98d3bf601bf15bb7cedd656ecd42fc1eb5c48822148de23ab724aad 0 3:71 0
crypt-swap1: 0 128457 crypt aes-cbc-plain 
800d0c169e6e1b9dece5bfc645dfe08d61fd2d8a18f578c14501988cbf31590d 0 3:5 0
vglinux1-test: 0 1310720 linear 3:4 13345152
crypt-tmp: 0 106496 crypt aes-cbc-plain 
d3de9d10862e89107374542c0cedb569c16d637262f5537f2c96bfc20eb2c1c1 0 254:3 0


Thank you for your quickness, Alasdair.
--
laurent

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to