Commit ce39cb0
committed
virtio_ring: add a func argument 'recycle_done' to virtqueue_resize()
JIRA: https://issues.redhat.com/browse/RHEL-56981
When virtqueue_resize() has actually recycled all unused buffers,
additional work may be required in some cases. Relying solely on its
return status is fragile, so introduce a new function argument
'recycle_done', which is invoked when the recycle really occurs.
Cc: <stable@vger.kernel.org> # v6.11+
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit 8d6712c)
Signed-off-by: Cindy Lu <lulu@redhat.com>1 parent e974458 commit ce39cb0
File tree
3 files changed
+9
-4
lines changed- drivers
- net
- virtio
- include/linux
3 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3159 | 3159 | | |
3160 | 3160 | | |
3161 | 3161 | | |
3162 | | - | |
| 3162 | + | |
3163 | 3163 | | |
3164 | 3164 | | |
3165 | 3165 | | |
| |||
3222 | 3222 | | |
3223 | 3223 | | |
3224 | 3224 | | |
3225 | | - | |
| 3225 | + | |
3226 | 3226 | | |
3227 | 3227 | | |
3228 | 3228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2716 | 2716 | | |
2717 | 2717 | | |
2718 | 2718 | | |
| 2719 | + | |
2719 | 2720 | | |
2720 | 2721 | | |
2721 | 2722 | | |
| |||
2736 | 2737 | | |
2737 | 2738 | | |
2738 | 2739 | | |
2739 | | - | |
| 2740 | + | |
| 2741 | + | |
2740 | 2742 | | |
2741 | 2743 | | |
2742 | 2744 | | |
| |||
2753 | 2755 | | |
2754 | 2756 | | |
2755 | 2757 | | |
| 2758 | + | |
| 2759 | + | |
2756 | 2760 | | |
2757 | 2761 | | |
2758 | 2762 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments