Merge pull request #1097 from robertbaldyga/dont-propagate-discard-flags

Don't propagate bio flags to OCF for discard I/O
This commit is contained in:
Robert Baldyga 2022-03-16 15:49:49 +01:00 committed by GitHub
commit e7b6d4ce6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,9 +356,7 @@ static void blkdev_handle_discard(struct bd_object *bvol, struct bio *bio)
io = ocf_volume_new_io(bvol->front_volume, queue,
CAS_BIO_BISECTOR(bio) << SECTOR_SHIFT,
CAS_BIO_BISIZE(bio), OCF_WRITE, 0,
CAS_CLEAR_FLUSH(CAS_BIO_OP_FLAGS(bio)));
CAS_BIO_BISIZE(bio), OCF_WRITE, 0, 0);
if (!io) {
CAS_PRINT_RL(KERN_CRIT
"Out of memory. Ending IO processing.\n");