search for: bio_max_pag

Displaying 3 results from an estimated 3 matches for "bio_max_pag".

Did you mean: bio_max_pages
2013 Jun 21
5
[PATCH 3/4] xen-blkback: check the number of iovecs before allocating a bios
With the introduction of indirect segments we can receive requests with a number of segments bigger than the maximum number of allowed iovecs in a bios, so make sure that blkback doesn't try to allocate a bios with more iovecs than BIO_MAX_PAGES Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> --- drivers/block/xen-blkback/blkback.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback...
2008 May 30
5
[PATCH 1/4] pvSCSI driver
pvSCSI backend driver Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> Signed-off-by: Jun Kamada <kama@jp.fujitsu.com> ----- Jun Kamada _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...SIZE); ++ end = ((unsigned long)ubuf + map_len + PAGE_SIZE - 1) ++ >> PAGE_SHIFT; ++ start = (unsigned long)ubuf >> PAGE_SHIFT; + +- if (!IS_ERR(bio)) { +- rq->bio = rq->biotail = bio; +- blk_rq_bio_prep(q, rq, bio); ++ /* ++ * A bad offset could cause us to require BIO_MAX_PAGES + 1 ++ * pages. If this happens we just lower the requested ++ * mapping len by a page so that we can fit ++ */ ++ if (end - start > BIO_MAX_PAGES) ++ map_len -= PAGE_SIZE; + +- rq->buffer = rq->data = NULL; +- rq->data_len = len; +- return 0; ++ ret = __blk_rq_map_user(...