Re: [PATCH v1 3/6] virtio: remove flags check for unmap packed indirect desc

2022-02-23 Thread Xuan Zhuo
On Wed, 23 Feb 2022 10:53:26 +0800, Jason Wang wrote: > > 在 2022/2/10 下午4:51, Xuan Zhuo 写道: > > When calling vring_unmap_desc_packed(), it will not encounter the > > situation that the flags contains VRING_DESC_F_INDIRECT. So remove this > > logic. > > > This seems not correct. > > There's a call

Re: [PATCH v1 3/6] virtio: remove flags check for unmap packed indirect desc

2022-02-22 Thread Jason Wang
在 2022/2/10 下午4:51, Xuan Zhuo 写道: When calling vring_unmap_desc_packed(), it will not encounter the situation that the flags contains VRING_DESC_F_INDIRECT. So remove this logic. This seems not correct. There's a call from detach_buf_packed() that can work for indirect descriptors?

[PATCH v1 3/6] virtio: remove flags check for unmap packed indirect desc

2022-02-10 Thread Xuan Zhuo
When calling vring_unmap_desc_packed(), it will not encounter the situation that the flags contains VRING_DESC_F_INDIRECT. So remove this logic. Signed-off-by: Xuan Zhuo --- drivers/virtio/virtio_ring.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git