Merge pull request #1301 from kmajzero/double_completion_fix

Potential double IO completion fix
This commit is contained in:
Robert Baldyga 2022-08-10 12:34:22 +02:00 committed by GitHub
commit 4603c0d6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,6 @@ static inline int blkdev_can_hndl_bio(struct bio *bio)
if (CAS_CHECK_BARRIER(bio)) {
CAS_PRINT_RL(KERN_WARNING
"special bio was sent, not supported!\n");
CAS_BIO_ENDIO(bio, CAS_BIO_BISIZE(bio), CAS_ERRNO_TO_BLK_STS(-EOPNOTSUPP));
return -ENOTSUPP;
}