mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 21:21:28 +00:00
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
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user