Re: dm: check error instead of r in clone_endio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 17 2014 at  1:37am -0500,
alex chen <alex.chen@xxxxxxxxxx> wrote:

> In the clone_endio, when target_type is linear and WRITE SAME bio
> fails, r will be always be initialized 0 because of null end_io, and
> in this case WRITE SAME will not be disabled.
> So we should check error instead of r.
> 
> Signed-off-by: Alex Chen <alex.chen@xxxxxxxxxx>

I've fixed it a bit differently (clone_endio now matches dm_done) and
have staged it for 3.19, see:
https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=for-next&id=5164bece1673cdf04782f8ed3fba70743700f5da

Thanks.

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux