search for: max_tap_dev

Displaying 2 results from an estimated 2 matches for "max_tap_dev".

2007 Oct 25
1
[PATCH] linux: Allow actually using CONFIG_XEN_BLKDEV_TAP=m
...============================================= --- head-2007-10-15.orig/drivers/xen/blktap/blktap.c 2007-10-19 17:17:15.000000000 +0200 +++ head-2007-10-15/drivers/xen/blktap/blktap.c 2007-06-22 09:21:11.000000000 +0200 @@ -116,13 +116,7 @@ typedef struct tap_blkif { static struct tap_blkif *tapfds[MAX_TAP_DEV]; static int blktap_next_minor; -static int __init set_blkif_reqs(char *str) -{ - get_option(&str, &blkif_reqs); - return 1; -} -__setup("blkif_reqs=", set_blkif_reqs); - +module_param(blkif_reqs, int, 0); /* Run-time switchable: /sys/module/blktap/parameters/ */ static unsig...
2008 Nov 05
0
[PATCH] blktap: ensure vma->vm_mm''s mmap_sem is being held whenever it is being modified
...******************** @@ -1356,6 +1373,7 @@ static void dispatch_rw_block_io(blkif_t int pending_idx = RTN_PEND_IDX(pending_req,pending_req->mem_idx); int usr_idx; uint16_t mmap_idx = pending_req->mem_idx; + struct mm_struct *mm; if (blkif->dev_num < 0 || blkif->dev_num > MAX_TAP_DEV) goto fail_response; @@ -1416,6 +1434,9 @@ static void dispatch_rw_block_io(blkif_t pending_req->status = BLKIF_RSP_OKAY; pending_req->nr_pages = nseg; op = 0; + mm = info->vma->vm_mm; + if (!xen_feature(XENFEAT_auto_translated_physmap)) + down_write(&mm->mmap_sem);...