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

Commit 1a2cf90a authored by Chris Lew's avatar Chris Lew
Browse files

block: vs_block_server: Fix bioset allocation



Add missing bioset allocation while initializing the virtual server
struct.

Change-Id: If76290a2191e5000b5bcdfff815227a9027d2a9c
Acked-by: default avatarTom Kuo <tkuo@qti.qualcomm.com>
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 55cb9664
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1044,6 +1044,10 @@ vs_block_server_alloc(struct vs_service_device *service)
	 * 4 in all mainline kernels). That possibility is the only reason we
	 * can't enable rx_atomic for this driver.
	 */
	server->bioset = kzalloc(sizeof(struct bio_set), GFP_KERNEL);
	if (!server->bioset)
		goto fail_create_bioset;

	err = bioset_init(server->bioset, min_t(unsigned, service->recv_quota,
				VSERVICE_BLOCK_IO_READ_MAX_PENDING +
				VSERVICE_BLOCK_IO_WRITE_MAX_PENDING),