[v1,0/2] swiotlb: Cleanup and alignment fix

Message ID cover.1679382779.git.petr.tesarik.ext@huawei.com
Headers
Series swiotlb: Cleanup and alignment fix |

Message

Petr Tesarik March 21, 2023, 8:31 a.m. UTC
  From: Petr Tesarik <petr.tesarik.ext@huawei.com>

While working on the dynamic SWIOTLB, I noticed a couple of issues
with the current implementation.

This patch series should be applied on top of GuoRui.Yu's fix for
the deadlock in swiotlb_do_find_slots().

Petr Tesarik (2):
  swiotlb: Use wrap_area_index() instead of open-coding it
  swiotlb: Fix slot alignment checks

 kernel/dma/swiotlb.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
  

Comments

Christoph Hellwig March 22, 2023, 8:05 a.m. UTC | #1
Thanks,

I've applied this to the for-linus branch with minor cosmetic tweaks.