projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b801a1e
)
loop: fix bad bio_alloc() nr_iovec request
author
Jens Axboe
<jens.axboe@oracle.com>
Fri, 11 Jan 2008 09:14:40 +0000
(10:14 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 11 Jan 2008 09:14:40 +0000
(10:14 +0100)
Don't allocate room for an iovec when it is not needed.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/loop.c
patch
|
blob
|
history
diff --git
a/drivers/block/loop.c
b/drivers/block/loop.c
index 56e23042728ae093776a86a499da310511d51a91..b8af22e610dfe4f90ac1b637f0670ec5f9e6bfee 100644
(file)
--- a/
drivers/block/loop.c
+++ b/
drivers/block/loop.c
@@
-610,7
+610,7
@@
static int loop_thread(void *data)
static int loop_switch(struct loop_device *lo, struct file *file)
{
struct switch_request w;
- struct bio *bio = bio_alloc(GFP_KERNEL,
1
);
+ struct bio *bio = bio_alloc(GFP_KERNEL,
0
);
if (!bio)
return -ENOMEM;
init_completion(&w.wait);