Re: [PATCH] imsm: FIX: indicate that metadada has to be written

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 18 Mar 2011 10:28:22 +0100 Adam Kwolek <adam.kwolek@xxxxxxxxx> wrote:

> During adding spare disks to raid0, spare metadata is not written.
> This is due to exit form sync_metadata() on empty updates_pending flag.
> 
> When mdmon is absent indicate sync_metadata() to flush changes to disks.
> 
> Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
> ---
> 
>  super-intel.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/super-intel.c b/super-intel.c
> index 44c100b..acd7571 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> @@ -3838,6 +3838,7 @@ static int add_to_super_imsm(struct supertype *st, mdu_disk_info_t *dk,
>  	} else {
>  		dd->next = super->disks;
>  		super->disks = dd;
> +		super->updates_pending++;
>  	}
>  
>  	return 0;


Applied, thanks.

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux