Re: [PATCH] block: fix residual byte count handling



FUJITA Tomonori wrote:
- I think bugs caused by using raw_data_len instead of data_len are more
subtle than the other way around. Using data_len instead of
raw_data_len usually affects the application layer while using
raw_data_len instead of data_len affects the DMA engine and transport layer.

If we add extra_len, we can get what raw_data_len and data_len
provide.

I can't see what changing the meaning of rq->data_len (and
investigating all the block drivers) gives us.

No matter which way you go, you change the meaning of rq->data_len and
you MUST inspect rq->data_len usage whichever way you go. Apply your
patch and try to do sg IO on IDE cdrom w/ various transfer lengths.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] block: fix residual byte count handling
    ... raw_data_len usually affects the application layer while using ... raw_data_len instead of data_len affects the DMA engine and transport layer. ... investigating all the block drivers) gives us. ... I've just tried the patch with both ata and libata and it seems to ...
    (Linux-Kernel)
  • Re: Extremely Important Announcement
    ... I believe there is a layer of meaning that you have either overlooked or ... > REG wrote: ... Prev by Date: ...
    (rec.music.opera)
  • Re: Layer ID and ASP Script
    ... I have several layers that I have turned into "buttons", meaning when a user ... clicks the "button" a corresponding page will open based on an ASP script. ... how can I pass the Layer ID to an ASP Script? ... > other HTML element, it can have an ID attribute. ...
    (microsoft.public.frontpage.programming)
  • Re: Extremely Important Announcement
    ... REG wrote: ... > I believe there is a layer of meaning that you have either overlooked or ... Prev by Date: ...
    (rec.music.opera)
  • Re: How can I make Layer Properties dialog non-modal?
    ... There's no way to make the layer dialog modeless ... I've been meaning to create this for a long time, ... the Layer Properties / Print column to always conform to whatever the ...
    (microsoft.public.visio.general)