Re: linear : divide error: 0000

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

 



On 20:37, Wei Yongquan wrote:
> > This sector_div() is in linear_conf() while the call trace indicates
> > the bug happens in mddev_put(). I'll have a deeper look later today.
> >
> > Is this a recent regression?
> 
> Sorry, I don't know.  2.6.24.4 has the some problem.

That's good to know because there has been a bit of churn in the
linear code recently. But this happened way after 2.6.24.4 and is
therefore not the source of the problem.

> the code linear.c :
> 
> 158              min_spacing = conf->array_sectors / 2;
> 159              sector_div(min_spacing, PAGE_SIZE/sizeof(struct dev_info *));
> 
> if the array size is less then 1024K and the system is 32 based,
> min_spacing will be ZERO.

nope, array_sectors in in 512 byte units. So the array size has to
be smaller than 1024 _bytes_ for min_spacing to become zero.

Andre
-- 
The only person who always got his work done by Friday was Robinson Crusoe

Attachment: signature.asc
Description: Digital signature


[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