Re: 4.13 on thinkpad x220: oops when writing to SD card
From: Linus Walleij
Date: Thu Sep 07 2017 - 15:58:40 EST
On Thu, Sep 7, 2017 at 9:53 AM, Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
> From: Adrian Hunter <adrian.hunter@xxxxxxxxx>
> Date: Thu, 7 Sep 2017 10:40:35 +0300
> Subject: [PATCH] mmc: block: Fix incorrectly initialized requests
>
> mmc_init_request() depends on card->bouncesz so it must be calculated
> before blk_init_allocated_queue() starts allocating requests.
>
> Reported-by: Seraphime Kirkovski <kirkseraph@xxxxxxxxx>
> Fixes: 304419d8a7e92 ("mmc: core: Allocate per-request data using the block layer core")
> Signed-off-by: Adrian Hunter <adrian.hunter@xxxxxxxxx>
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Really neat and quick fix, thanks a lot Adrian.
My fault for not finding more systems actually *using* these
bounce buffers. :( :(
Yours,
Linus Walleij