git: virtio_blk: Use contigmalloc/contigfree for vtblk_request allocations.

Sepherosa Ziehau sepherosa at gmail.com
Sun Dec 13 06:20:29 PST 2015


On Sun, Dec 13, 2015 at 8:39 AM, Imre Vadasz
<ivadasz at crater.dragonflybsd.org> wrote:
>
> commit f9d3f193aa805829d2b1e3253c9a45af91a9d276
> Author: Imre Vadasz <imre at vdsz.com>
> Date:   Sun Dec 13 01:24:23 2015 +0100
>
>     virtio_blk: Use contigmalloc/contigfree for vtblk_request allocations.
>
>     This should fix the "panic: header spanned multiple segments: 2" panic
>     occuring for some users when running in qemu.
>
>     Reported-By: Jim B.
>
> Summary of changes:
>  sys/dev/virtual/virtio/block/virtio_blk.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
>
> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f9d3f193aa805829d2b1e3253c9a45af91a9d276

According to the vtblk_request it should be 16 bytes aligned, so
you probably want to use 16 as the 'alignment' for contigmalloc()

Thanks,
sephe

-- 
Tomorrow Will Never Die



More information about the Commits mailing list