[PATCH] virtio: remove the duplicate might_sleep()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Xiaowu Ding <xiaowu.ding@xxxxxxxxxxxxxxx>

The virtio_add_status function have done might_sleep(),so we can remove
the duplicate calls.

Signed-off-by: Xiaowu Ding <xiaowu.ding@xxxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux