dm: test return value for DM_MAPIO_SUBMITTED
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 1 Jul 2015 21:30:36 +0000 (17:30 -0400)
committerMike Snitzer <snitzer@redhat.com>
Wed, 12 Aug 2015 15:32:20 +0000 (11:32 -0400)
commitab37844d6169c2dd6f96e665b07b692ba1a4c180
treec66fb0d74d2bd9237a265a011d4ab738b9023f8e
parent4fb9aa5abdb791defedb3a5ce254ad193e82d77b
dm: test return value for DM_MAPIO_SUBMITTED

In properly written code we should not assume that DM_MAPIO_SUBMITTED is
zero. We should test the return value for DM_MAPIO_SUBMITTED rather than
testing it for zero.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c