Commit c581cb61 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] md sync_page_io bio leak

I accidentally introduced a leak in there, because the end_io function
doesn't do a bio_put() like most others. Fortunately it's not critical,
as it only happens on the md super block read. So just drop the initial
bio_get(), since it's sync we can just bio_put() safely at the end after
it has completed.
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1253e974
......@@ -336,8 +336,6 @@ static int sync_page_io(struct block_device *bdev, sector_t sector, int size,
struct completion event;
int ret;
bio_get(bio);
rw |= (1 << BIO_RW_SYNC);
bio->bi_bdev = bdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment