xen: add helpers for caching grant mapping pages
Instead of having similar helpers in multiple backend drivers use common helpers for caching pages allocated via gnttab_alloc_pages(). Make use of those helpers in blkback and scsiback. Cc: <stable@vger.kernel.org> # 5.9 Signed-off-by:Juergen Gross <jgross@suse.com> Reviewed-by:
Boris Ostrovsky <boris.ostrovksy@oracle.com> Signed-off-by:
Juergen Gross <jgross@suse.com>
Showing
- drivers/block/xen-blkback/blkback.c 17 additions, 72 deletionsdrivers/block/xen-blkback/blkback.c
- drivers/block/xen-blkback/common.h 1 addition, 3 deletionsdrivers/block/xen-blkback/common.h
- drivers/block/xen-blkback/xenbus.c 2 additions, 4 deletionsdrivers/block/xen-blkback/xenbus.c
- drivers/xen/grant-table.c 72 additions, 0 deletionsdrivers/xen/grant-table.c
- drivers/xen/xen-scsiback.c 11 additions, 49 deletionsdrivers/xen/xen-scsiback.c
- include/xen/grant_table.h 13 additions, 0 deletionsinclude/xen/grant_table.h
Loading
Please register or sign in to comment