dm ebs: Fix incorrect checking for REQ_OP_FLUSH
authorJohn Dorminy <jdorminy@redhat.com>
Fri, 31 Jul 2020 22:46:45 +0000 (18:46 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 4 Aug 2020 20:01:40 +0000 (16:01 -0400)
commit4cb6f22612511ff2aba4c33fb0f281cae7c23772
treef0028fb6cba99d27f6ba22212cb9abd01b68c5f1
parent90e6bf0659f11f3d8ffa7ae1d7a4fa2af015747a
dm ebs: Fix incorrect checking for REQ_OP_FLUSH

REQ_OP_FLUSH was being treated as a flag, but the operation
part of bio->bi_opf must be treated as a whole. Change to
accessing the operation part via bio_op(bio) and checking
for equality.

Signed-off-by: John Dorminy <jdorminy@redhat.com>
Acked-by: Heinz Mauelshagen <heinzm@redhat.com>
Fixes: d3c7b35c20d60 ("dm: add emulated block size target")
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ebs-target.c