Re: Problems implementing a software RAID driver

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

 



On Sun, 2008-04-06 at 20:48 +0300, Razvan Deaconescu wrote:
> Hi!
> 
> I am trying to implement a software RAID driver. However, I am having
> problems sending a simple bio request to the physical device.
> 
> I am using open_bdev_excl and submit_bio to accomplish this[1]. However,
> if I use submit_bio, an oops occurs. Does anyone have a clue of what the
> problem could be?
> 
<snip>
> [1] http://rafb.net/p/Re5klW51.html

I've managed to solve my problems. The bio_add_page function should only
be called with a size argument that's a multiple of the block device
sector size. Otherwise the system crashes.

As soon as I replaced the 300 argument with 512 or 1024 or
KERNEL_SECTOR_SIZE, everything worked like a charm.

Razvan


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux