linux/blktap2: use blk_rq_map_sg() here too
PATCH 1/1 linux/blktap2: use blk_rq_map_sg() here too
Just like in blkfront, not doing so can cause the maximum number of segments check to trigger.
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/blktap2/blktap.h +2 -0
@@ -4,6 +4,7 @@#include <linux/fs.h> #include <linux/poll.h> #include <linux/cdev.h> +#include <linux/scatterlist.h> #include <xen/blkif.h> #include <xen/gnttab.h>
@@ -174,6 +175,7 @@ struct blktap {int pending_cnt;struct blktap_request *pending_requests[MAX_PENDING_REQS ]; +struct scatterlist sg[BLKIF_MAX_SEGMENTS_PER_REQUEST ];wait_queue_head_t wq;struct list_head deferred_queue;
drivers/xen/blktap2/device.c +18 -25
84 lines not on this page · raw message