block: vs_block_server: Fix bioset allocation
Add missing bioset allocation while initializing the virtual server struct. Change-Id: If76290a2191e5000b5bcdfff815227a9027d2a9c Acked-by: Tom Kuo <tkuo@qti.qualcomm.com> Signed-off-by: Chris Lew <clew@codeaurora.org>
This commit is contained in:
parent
55cb96645b
commit
1a2cf90a8c
1 changed files with 4 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue