Paulo da Silva escreveu:
> Paulo da Silva escreveu:
>
> I further simplified this ...
> Now, everything I have is reading a page after sector 1 (sector 0 also
> fails).
> Why does err come with -5?
> What am I doing wrong?
>
> ...

>     bio->bi_rw=0;
>     clear_bit(BIO_UPTODATE,&bio->bi_flags);
>   
The problem is here! We must set the BIO_UPTODATE bit. Not clear it.
That's what bio_alloc does anyway. So we may just ommit setting this bit
unless reusing the bio.


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to