Re: A trivial I/O module - Error [SOLVED]

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

 



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 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