Skip to contentSkip to conversation

fixup potential cpu stall

PATCH Applied Xianting Tian 5 participants 20 messages Jun 9, 2023 – Jul 6, 2023

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

cover fixup potential cpu stall

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

Xianting Tian (3):
virtio-crypto: fixup potential cpu stall when free unused bufs
virtio_console: fixup potential cpu stall when free unused bufs
virtio_bt: fixup potential cpu stall when free unused bufs

 drivers/bluetooth/virtio_bt.c              | 1 +
 drivers/char/virtio_console.c              | 1 +
 drivers/crypto/virtio/virtio_crypto_core.c | 1 +
 3 files changed, 3 insertions(+)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/3 virtio-crypto: fixup potential cpu stall when free unused bufs

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
 drivers/crypto/virtio/virtio_crypto_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
index 1198bd306365..94849fa3bd74 100644
@@ -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();
 	}
 }
 
Signature · 1 line
2.17.1
maintainer
#2 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

Quoted 15 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
 drivers/crypto/virtio/virtio_crypto_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +0 -0
index 1198bd306365..94849fa3bd74 100644

drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) · line 483

Quoted 4 lines
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
@@ -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();

that's not "fixing a stall", it is "call the scheduler because we are taking too long". The CPU isn't stalled at all, just busy.

Are you sure this isn't just a bug in the code? Why is this code taking so long that you have to force the scheduler to run? This is almost always a sign that something else needs to be fixed instead.

thanks,

greg k-h

maintainer
#3 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

Quoted 24 lines · Greg KH
Quoted 15 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
 drivers/crypto/virtio/virtio_crypto_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +0 -0
index 1198bd306365..94849fa3bd74 100644

drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) · line 483

Quoted 4 lines
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
@@ -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();

that's not "fixing a stall", it is "call the scheduler because we are taking too long". The CPU isn't stalled at all, just busy.

Quoted 3 lines

Are you sure this isn't just a bug in the code? Why is this code taking so long that you have to force the scheduler to run? This is almost always a sign that something else needs to be fixed instead.

And same comment on the other 2 patches, please fix this properly.

Also, this is a tight loop that is just freeing memory, why is it taking so long? Why do you want it to take longer (which is what you are doing here), ideally it would be faster, not slower, so you are now slowing down the system overall with this patchset, right?

thanks,

greg k-h

#4 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

Quoted 27 lines · Greg KH
Quoted 23 lines · Greg KH
Quoted 15 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
  drivers/crypto/virtio/virtio_crypto_core.c | 1 +
  1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +0 -0
index 1198bd306365..94849fa3bd74 100644

drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) · line 483

Quoted 4 lines
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
@@ -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();

that's not "fixing a stall", it is "call the scheduler because we are taking too long". The CPU isn't stalled at all, just busy.

Quoted 3 lines

Are you sure this isn't just a bug in the code? Why is this code taking so long that you have to force the scheduler to run? This is almost always a sign that something else needs to be fixed instead.

Quoted 6 lines

And same comment on the other 2 patches, please fix this properly.

Also, this is a tight loop that is just freeing memory, why is it taking so long? Why do you want it to take longer (which is what you are doing here), ideally it would be faster, not slower, so you are now slowing down the system overall with this patchset, right?

yes, it is the similar fix with one for virtio-net

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108 <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108>

Quoted 4 lines

thanks,

greg k-h

maintainer
#5 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

Quoted 31 lines · Xianting Tian
Quoted 29 lines · Greg KH
Quoted 23 lines · Greg KH
Quoted 15 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
  drivers/crypto/virtio/virtio_crypto_core.c | 1 +
  1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +0 -0
index 1198bd306365..94849fa3bd74 100644

drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) · line 483

Quoted 4 lines
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
@@ -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();

that's not "fixing a stall", it is "call the scheduler because we are taking too long". The CPU isn't stalled at all, just busy.

Quoted 3 lines

Are you sure this isn't just a bug in the code? Why is this code taking so long that you have to force the scheduler to run? This is almost always a sign that something else needs to be fixed instead.

And same comment on the other 2 patches, please fix this properly.

Quoted 8 lines
Quoted 4 lines

Also, this is a tight loop that is just freeing memory, why is it taking so long? Why do you want it to take longer (which is what you are doing here), ideally it would be faster, not slower, so you are now slowing down the system overall with this patchset, right?

yes, it is the similar fix with one for virtio-net

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108 <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108>

I would argue that this too is incorrect, because why does freeing memory take so long? And again, you are making it take longer, is that ok?

thanks,

greg k-h

#6 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

Quoted 35 lines · Greg KH
Quoted 34 lines · Xianting Tian
Quoted 33 lines · Greg KH
Quoted 23 lines · Greg KH
Quoted 15 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
   drivers/crypto/virtio/virtio_crypto_core.c | 1 +
   1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +0 -0
index 1198bd306365..94849fa3bd74 100644

drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) · line 483

Quoted 4 lines
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
@@ -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();

that's not "fixing a stall", it is "call the scheduler because we are taking too long". The CPU isn't stalled at all, just busy.

Quoted 3 lines

Are you sure this isn't just a bug in the code? Why is this code taking so long that you have to force the scheduler to run? This is almost always a sign that something else needs to be fixed instead.

And same comment on the other 2 patches, please fix this properly.

Also, this is a tight loop that is just freeing memory, why is it taking so long? Why do you want it to take longer (which is what you are doing here), ideally it would be faster, not slower, so you are now slowing down the system overall with this patchset, right?

Quoted 6 lines
Quoted 3 lines

yes, it is the similar fix with one for virtio-net

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108 <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108>

I would argue that this too is incorrect, because why does freeing memory take so long? And again, you are making it take longer, is that ok?

Yes, it may take longer, but I think it's no harms.

As the queue numbers and queue's depth are uncertain, it depends on user's configuration. It may take more times in kernel space to free all queues without schedule, so it has the risk to cause other task starve

Quoted 4 lines

thanks,

greg k-h

#7 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

In reply to Greg KH
Quoted 32 lines · Greg KH
Quoted 31 lines · Xianting Tian
Quoted 29 lines · Greg KH
Quoted 23 lines · Greg KH
Quoted 15 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
  drivers/crypto/virtio/virtio_crypto_core.c | 1 +
  1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +0 -0
index 1198bd306365..94849fa3bd74 100644

drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) · line 483

Quoted 4 lines
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
@@ -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();

that's not "fixing a stall", it is "call the scheduler because we are taking too long". The CPU isn't stalled at all, just busy.

Quoted 3 lines

Are you sure this isn't just a bug in the code? Why is this code taking so long that you have to force the scheduler to run? This is almost always a sign that something else needs to be fixed instead.

And same comment on the other 2 patches, please fix this properly.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines

Also, this is a tight loop that is just freeing memory, why is it taking so long? Why do you want it to take longer (which is what you are doing here), ideally it would be faster, not slower, so you are now slowing down the system overall with this patchset, right?

yes, it is the similar fix with one for virtio-net

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108 <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/virtio_net.c?h=v6.4-rc5&id=f8bb5104394560e29017c25bcade4c6b7aabd108>

Well that one actually at least describes the configuration:

For multi-queue and large ring-size use case, the following error occurred when free_unused_bufs:
rcu: INFO: rcu_sched self-detected stall on CPU.

So a similar fix but not a similar commit log, this one lacks Fixes tag and description of what the problem is and when does it trigger.

Quoted 2 lines

I would argue that this too is incorrect, because why does freeing memory take so long?

You are correct that even that one lacks detailed explanation why does the patch help.

And the explanation why it takes so long is exactly that we have very deep queues and a very large number of queues. What the patch does is gives scheduler a chance
to do some work between the queues.

Quoted 6 lines

And again, you are making it take longer, is that
ok?

thanks,

greg k-h

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

#8 lore raw
In reply to Xianting Tian

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=755724

---Test result---

Test Summary:

CheckPatch                    FAIL      2.07 seconds
GitLint                       PASS      0.89 seconds
SubjectPrefix                 FAIL      0.60 seconds
BuildKernel                   PASS      31.52 seconds
CheckAllWarning               PASS      35.09 seconds
CheckSparse                   PASS      39.28 seconds
CheckSmatch                   PASS      110.54 seconds
BuildKernel32                 PASS      30.66 seconds
TestRunnerSetup               PASS      441.30 seconds
TestRunner_l2cap-tester       PASS      16.46 seconds
TestRunner_iso-tester         PASS      21.93 seconds
TestRunner_bnep-tester        PASS      5.33 seconds
TestRunner_mgmt-tester        PASS      112.39 seconds
TestRunner_rfcomm-tester      PASS      8.67 seconds
TestRunner_sco-tester         PASS      7.87 seconds
TestRunner_ioctl-tester       PASS      9.21 seconds
TestRunner_mesh-tester        PASS      6.80 seconds
TestRunner_smp-tester         PASS      7.86 seconds
TestRunner_userchan-tester    PASS      5.59 seconds
IncrementalBuild              PASS      37.02 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[1/3] virtio-crypto: fixup potential cpu stall when free unused bufs
WARNING: From:/Signed-off-by: email address mismatch: 'From: Xianting Tian <[email protected]>' != 'Signed-off-by: Xianting Tian <[email protected]>'

total: 0 errors, 1 warnings, 7 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.

/github/workspace/src/src/13273948.patch has style problems, please review.

NOTE: Ignored message types: UNKNOWN_COMMIT_ID

NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix Output:
"Bluetooth: " prefix is not specified in the subject "Bluetooth: " prefix is not specified in the subject "Bluetooth: " prefix is not specified in the subject

---
Regards,
Linux Bluetooth

#9 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

In reply to Xianting Tian
Quoted 4 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

What does "may happen" imply exactly?
was this observed?

Quoted 19 lines
---
 drivers/crypto/virtio/virtio_crypto_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
index 1198bd306365..94849fa3bd74 100644
@@ -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();
 	}
 }
 
Signature · 1 line
2.17.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

#10 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

Quoted 7 lines · Michael S. Tsirkin
Quoted 4 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

What does "may happen" imply exactly?
was this observed?

I didn't met such issue, this patch set just a theoretical fix.

Quoted 20 lines
Quoted 20 lines
---
  drivers/crypto/virtio/virtio_crypto_core.c | 1 +
  1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
index 1198bd306365..94849fa3bd74 100644
@@ -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();
  	}
  }
 
Signature · 1 line
2.17.1
maintainer
#11 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

Quoted 10 lines · Xianting Tian
Quoted 7 lines · Michael S. Tsirkin
Quoted 4 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

What does "may happen" imply exactly?
was this observed?

I didn't met such issue, this patch set just a theoretical fix.

Then I would not recommend adding it at this time, as you just slowed down the kernel for something that no one has reported :(

thanks,

greg k-h

#12 lore raw

Re: [PATCH 1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

In reply to Xianting Tian
Quoted 6 lines · Xianting Tian

From: Xianting Tian <[email protected]>

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

include a Fixes tag?

Quoted 18 lines
---
 drivers/crypto/virtio/virtio_crypto_core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/virtio/virtio_crypto_core.c +1 -0
index 1198bd306365..94849fa3bd74 100644
@@ -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();
 	}
 }
 
Signature · 1 line
2.17.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

#13 lore raw

PATCH 2/3 virtio_console: fixup potential cpu stall when free unused bufs

In reply to Xianting Tian

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
 drivers/char/virtio_console.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/virtio_console.c +1 -0
index b65c809a4e97..5ec4cf4ea919 100644
@@ -1935,6 +1935,7 @@ static void remove_vqs(struct ports_device *portdev)
 		flush_bufs(vq, true);
 		while ((buf = virtqueue_detach_unused_buf(vq)))
 			free_buf(buf, true);
+		cond_resched();
 	}
 	portdev->vdev->config->del_vqs(portdev->vdev);
 	kfree(portdev->in_vqs);
Signature · 1 line
2.17.1
#14 lore raw

Re: [PATCH 2/3] virtio_console: fixup potential cpu stall when free unused bufs

Quoted 2 lines · Xianting Tian

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

"may happen" is ambigous.

So is this: "for virtio-net we were getting stall on CPU was observed message, this driver is similar so theoretically the same logic applies"

or is this

"the following error occured: ..... "

?

Quoted 19 lines
---
 drivers/char/virtio_console.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/virtio_console.c +1 -0
index b65c809a4e97..5ec4cf4ea919 100644
@@ -1935,6 +1935,7 @@ static void remove_vqs(struct ports_device *portdev)
 		flush_bufs(vq, true);
 		while ((buf = virtqueue_detach_unused_buf(vq)))
 			free_buf(buf, true);
+		cond_resched();
 	}
 	portdev->vdev->config->del_vqs(portdev->vdev);
 	kfree(portdev->in_vqs);
Signature · 1 line
2.17.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

#15 lore raw

Re: [PATCH 2/3] virtio_console: fixup potential cpu stall when free unused bufs

Quoted 8 lines · Michael S. Tsirkin
Quoted 2 lines · Xianting Tian

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

"may happen" is ambigous.

So is this: "for virtio-net we were getting stall on CPU was observed message, this driver is similar so theoretically the same logic applies"

It is this one

 “this driver is similar so theoretically the same logic applies”

Quoted 27 lines

or is this

"the following error occured: ....."

?

Quoted 19 lines
---
  drivers/char/virtio_console.c | 1 +
  1 file changed, 1 insertion(+)
drivers/char/virtio_console.c +1 -0
index b65c809a4e97..5ec4cf4ea919 100644
@@ -1935,6 +1935,7 @@ static void remove_vqs(struct ports_device *portdev)
  		flush_bufs(vq, true);
  		while ((buf = virtqueue_detach_unused_buf(vq)))
  			free_buf(buf, true);
+		cond_resched();
  	}
  	portdev->vdev->config->del_vqs(portdev->vdev);
  	kfree(portdev->in_vqs);
Signature · 1 line
2.17.1
#16 lore raw

PATCH 3/3 virtio_bt: fixup potential cpu stall when free unused bufs

In reply to Xianting Tian

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

---
 drivers/bluetooth/virtio_bt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/virtio_bt.c +1 -0
index c570c45d1480..2ac70b560c46 100644
@@ -79,6 +79,7 @@ static int virtbt_close_vdev(struct virtio_bluetooth *vbt)
 
 		while ((skb = virtqueue_detach_unused_buf(vq)))
 			kfree_skb(skb);
+		cond_resched();
 	}
 
 	return 0;
Signature · 1 line
2.17.1
maintainer Applied
#17 lore raw
In reply to Xianting Tian
Quoted 2 lines · Xianting Tian

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

I applied this after tweaking commit log to address Greg's comments. In the future I expect you guys to do such tweaks yourself.

Quoted 5 lines

Xianting Tian (3):
virtio-crypto: fixup potential cpu stall when free unused bufs
virtio_console: fixup potential cpu stall when free unused bufs
virtio_bt: fixup potential cpu stall when free unused bufs

Quoted 7 lines
 drivers/bluetooth/virtio_bt.c              | 1 +
 drivers/char/virtio_console.c              | 1 +
 drivers/crypto/virtio/virtio_crypto_core.c | 1 +
 3 files changed, 3 insertions(+)
Signature · 1 line
2.17.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

#18 lore raw
Quoted 6 lines · Michael S. Tsirkin
Quoted 2 lines · Xianting Tian

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

I applied this after tweaking commit log to address Greg's comments. In the future I expect you guys to do such tweaks yourself.

thanks.

Quoted 13 lines
Quoted 13 lines

Xianting Tian (3):
virtio-crypto: fixup potential cpu stall when free unused bufs
virtio_console: fixup potential cpu stall when free unused bufs
virtio_bt: fixup potential cpu stall when free unused bufs

  drivers/bluetooth/virtio_bt.c              | 1 +
  drivers/char/virtio_console.c              | 1 +
  drivers/crypto/virtio/virtio_crypto_core.c | 1 +
  3 files changed, 3 insertions(+)
Signature · 1 line
2.17.1
#19 lore raw
In reply to Xianting Tian
This series was applied to bluetooth/bluetooth-next.git (master) by Michael S. Tsirkin <[email protected]>:

Hello:

This series was applied to bluetooth/bluetooth-next.git (master) by Michael S. Tsirkin <[email protected]>:

Quoted 9 lines · On Fri, 9 Jun 2023 21:18:14 +0800 you wrote:

Cpu stall issue may happen if device is configured with multi queues and large queue depth, so fix it.

Xianting Tian (3):
virtio-crypto: fixup potential cpu stall when free unused bufs
virtio_console: fixup potential cpu stall when free unused bufs
virtio_bt: fixup potential cpu stall when free unused bufs

[...]

Here is the summary with links:
- [1/3] virtio-crypto: fixup potential cpu stall when free unused bufs

    https://git.kernel.org/bluetooth/bluetooth-next/c/7a5103b81a96
  - [2/3] virtio_console: fixup potential cpu stall when free unused bufs
    https://git.kernel.org/bluetooth/bluetooth-next/c/56b5e65efe00
  - [3/3] virtio_bt: fixup potential cpu stall when free unused bufs
    https://git.kernel.org/bluetooth/bluetooth-next/c/3845308fc8b0

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html