Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79679add authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "md: No split IO for ICE based dm-req-crypt"

parents 22fd74a9 6195b92b
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1115,10 +1115,6 @@ static int req_crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
		is_fde_enabled = true; /* backward compatible */
	}

	bdev = dev->bdev;
	q = bdev_get_queue(bdev);
	blk_queue_max_hw_sectors(q, DM_REQ_CRYPT_QUEUE_SIZE);

	_req_crypt_io_pool = KMEM_CACHE(req_dm_crypt_io, 0);
	if (!_req_crypt_io_pool) {
		err =  DM_REQ_CRYPT_ERROR;
@@ -1160,6 +1156,12 @@ static int req_crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
		}
	}

	if (encryption_mode != DM_REQ_CRYPT_ENCRYPTION_MODE_TRANSPARENT) {
		bdev = dev->bdev;
		q = bdev_get_queue(bdev);
		blk_queue_max_hw_sectors(q, DM_REQ_CRYPT_QUEUE_SIZE);
	}

	req_crypt_queue = alloc_workqueue("req_cryptd",
					WQ_UNBOUND |
					WQ_CPU_INTENSIVE|