mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
vblk: use normal wait API instead of io wait
Since thread is waiting for request to come from filesystem layer instead of actual IO request to process.So use normal wait API in thread instead of IO wait API. Bug 4553019 Change-Id: Ib72bca088b555353ebd3dc6362cd0e24de0a570f Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3100480 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> Tested-by: Zuyu Liao <zuyul@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3260664 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Gokul Vasan L J <gokull@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
dc071fdd4c
commit
efe8229d72
@@ -2,7 +2,6 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
|
|
||||||
#include <nvidia/conftest.h>
|
#include <nvidia/conftest.h>
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/moduleparam.h>
|
#include <linux/moduleparam.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
@@ -731,7 +730,7 @@ static int vblk_request_worker(void *data)
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
retry:
|
retry:
|
||||||
wait_for_completion_io(&vblkdev->complete);
|
wait_for_completion(&vblkdev->complete);
|
||||||
|
|
||||||
/* Taking ivc lock before performing IVC read/write */
|
/* Taking ivc lock before performing IVC read/write */
|
||||||
mutex_lock(&vblkdev->ivc_lock);
|
mutex_lock(&vblkdev->ivc_lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user