[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] qed: adjust the way to get nb_sectors
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH v2] qed: adjust the way to get nb_sectors |
Date: |
Wed, 02 Nov 2011 12:13:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 |
Am 01.11.2011 09:04, schrieb Zhi Yong Wu:
> This patch is only to refactor some lines of codes to get better and more
> robust codes.
>
> As you have seen, in qed_read_table_cb() it's nice to
> use qiov->size because that function doesn't obviously use a single
> struct iovec.
>
> In other two functions, if qiov use more than one struct iovec, the existing
> way will get wrong nb_sectors.
> To make the code more robust, it will be nicer to refactor the existing way
> as below.
>
>
> Signed-off-by: Zhi Yong Wu <address@hidden>
Thanks, applied to the block branch.
Kevin