[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230609131817.712867-2-xianting.tian@linux.alibaba.com>
Date: Fri, 9 Jun 2023 21:18:15 +0800
From: Xianting Tian <xianting.tian@...ux.alibaba.com>
To: arei.gonglei@...wei.com, mst@...hat.com, jasowang@...hat.com,
xuanzhuo@...ux.alibaba.com, herbert@...dor.apana.org.au,
davem@...emloft.net, amit@...nel.org, arnd@...db.de,
gregkh@...uxfoundation.org, marcel@...tmann.org,
johan.hedberg@...il.com, luiz.dentz@...il.com
Cc: linux-bluetooth@...r.kernel.org,
virtualization@...ts.linux-foundation.org,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
Xianting Tian <tianxianting.txt@...baba-inc.com>,
Xianting Tian <xianting.tian@...ux.alibaba.com>
Subject: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs
From: Xianting Tian <tianxianting.txt@...baba-inc.com>
Cpu stall issue may happen if device is configured with multi queues
and large queue depth, so fix it.
Signed-off-by: Xianting Tian <xianting.tian@...ux.alibaba.com>
---
drivers/crypto/virtio/virtio_crypto_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/virtio/virtio_crypto_core.c b/drivers/crypto/virtio/virtio_crypto_core.c
index 1198bd306365..94849fa3bd74 100644
--- a/drivers/crypto/virtio/virtio_crypto_core.c
+++ b/drivers/crypto/virtio/virtio_crypto_core.c
@@ -480,6 +480,7 @@ static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto)
kfree(vc_req->req_data);
kfree(vc_req->sgs);
}
+ cond_resched();
}
}
--
2.17.1
Powered by blists - more mailing lists