From 2eae3f9f134f35c5b88c65ee3c3cafa1c58d5db4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 7 Oct 2016 00:45:18 +0000 Subject: [PATCH] scst_vdisk: Use op_is_write() instead of comparing with REQ_OP_WRITE git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6994 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 94b34af57..fb24562de 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -6522,7 +6522,7 @@ static void blockio_endio(struct bio *bio) #elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) if (bio->bi_rw & REQ_WRITE) #else - if (bio_op(bio) == REQ_OP_WRITE) + if (op_is_write(bio_op(bio))) #endif scst_set_cmd_error(blockio_work->cmd, SCST_LOAD_SENSE(scst_sense_write_error));