<p dir="ltr"><br>
On 04-Jan-2014 5:18 AM, "neha naik" <<a href="mailto:nehanaik27@gmail.com">nehanaik27@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
> I am getting a request with bvec->bv_len > 512. Now, the<br>
> information to be read is scattered across the entire disk in 512<br>
> chunks. So that, information on disk can be : sector 8, sector 100,<br>
> sector 9.<br>
> Now if i get a request to read with the bvec->bv_len > 512 i need to<br>
> pull in the information from<br>
> multiple places on disk since the data is not sequentially located.<br>
> I tried to look at the linux source code because i think raid must be<br>
> doing it all the time. (eg : on disk 1 we may be storing sector 6 and<br>
> on disk 2 we may be storing sector 7 and so on).</p>
<p dir="ltr">You are right. Perhaps you need to clone the bio and set them properly. I guess you ought to check dm driver's make_request function. It does clone bio.</p>
<p dir="ltr">I don't know if you can split that request while handling it. Perhaps reinserting that request could work.</p>
<p dir="ltr">> However, i have not really got any useful information from it. Also<br>
> scouring through articles on<br>
> google has not helped much.<br>
> I am hoping somebody points me in the right direction.<br>
><br>
> Thanks in advance,<br>
> Neha<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a></p>
<p dir="ltr"> ---P.K.S</p>