Skip to content

Commit

Permalink
Merge pull request #1098 from robertbaldyga/v21.6.5-dont-propagate-di…
Browse files Browse the repository at this point in the history
…scard-flags

[v21.6.5] Don't propagate bio flags to OCF for discard I/O
  • Loading branch information
Robert Baldyga authored Mar 16, 2022
2 parents a2f1acd + de9755e commit 0521f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions modules/cas_cache/volume/vol_block_dev_top.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,7 @@ static void _blockdev_handle_discard(ocf_core_t core, struct bio *bio)

io = ocf_core_new_io(core, cache_priv->io_queues[smp_processor_id()],
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");
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CAS_VERSION_MAIN=21
CAS_VERSION_MAJOR=6
CAS_VERSION_MINOR=4
CAS_VERSION_MINOR=5

0 comments on commit 0521f30

Please sign in to comment.