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

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

Merge "md: dm-req-crypt: Remove few extra checks from write request path"

parents 6de29d79 8726b321
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -870,9 +870,8 @@ static int req_crypt_endio(struct dm_target *ti, struct request *clone,
	struct bio_vec bvec;
	struct req_dm_crypt_io *req_io = map_context->ptr;

	/* If it is a write request, do nothing just return. */
	if (encryption_mode == DM_REQ_CRYPT_ENCRYPTION_MODE_TRANSPARENT
		&& rq_data_dir(clone) == READ) {
	/* If it is for ICE, free up req_io and return */
	if (encryption_mode == DM_REQ_CRYPT_ENCRYPTION_MODE_TRANSPARENT) {
		mempool_free(req_io, req_io_pool);
		goto submit_request;
	}