Thread (30 messages) 30 messages, 6 authors, 2018-10-19

Re: [PATCH 1/5] block: warn on un-aligned DMA IO buffer

From: Jens Axboe <axboe@kernel.dk>
Date: 2018-10-18 22:48:10
Also in: linux-fsdevel

On 10/18/18 8:43 AM, Christoph Hellwig wrote:
On Thu, Oct 18, 2018 at 08:27:28AM -0600, Jens Axboe wrote:
quoted
On 10/18/18 7:18 AM, Ming Lei wrote:
quoted
Now we only check if DMA IO buffer is aligned to queue_dma_alignment()
for pass-through request, and it isn't done for normal IO request.

Given the check has to be done on each bvec, it isn't efficient to add the
check in generic_make_request_checks().

This patch addes one WARN in blk_queue_split() for capturing this issue.
I don't want to do this, because then we are forever doomed to
have something that fully loops a bio at submission time. I
absolutely hate the splitting we have and the need for it,
hopefully it can go away for a subset of IOs at some point.
It is just a WARN_ON - no one should rely on it, but it is a good
debug aid.
And then we'll have it start triggering on random things because
some drivers set random limits, that don't reflect reality at
all... We've basically had this setting that some drivers set,
but that we don't really look at except for mapping in user
data. Those should be audited first before adding something like
this.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help