[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241118124056.1038-1-xiaowu.ding@jaguarmicro.com>
Date: Mon, 18 Nov 2024 20:40:56 +0800
From: xiaowuding_jaguarmicro <xiaowu.ding@...uarmicro.com>
To: mst@...hat.com,
jasowang@...hat.com
Cc: xuanzhuo@...ux.alibaba.com,
eperezma@...hat.com,
virtualization@...ts.linux.dev,
linux-kernel@...r.kernel.org,
angus.chen@...uarmicro.com,
Xiaowu Ding <xiaowu.ding@...uarmicro.com>
Subject: [PATCH] virtio: remove the duplicate might_sleep()
From: Xiaowu Ding <xiaowu.ding@...uarmicro.com>
The virtio_add_status function have done might_sleep(),so we can remove
the duplicate calls.
Signed-off-by: Xiaowu Ding <xiaowu.ding@...uarmicro.com>
---
drivers/virtio/virtio.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index b9095751e..8352dfc1a 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -205,8 +205,6 @@ static int virtio_features_ok(struct virtio_device *dev)
{
unsigned int status;
- might_sleep();
-
if (virtio_check_mem_acc_cb(dev)) {
if (!virtio_has_feature(dev, VIRTIO_F_VERSION_1)) {
dev_warn(&dev->dev,
--
2.27.0
Powered by blists - more mailing lists