]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.20.2/md_md5_6_bio_too_big_fix_fix.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.20.2 / md_md5_6_bio_too_big_fix_fix.patch
1 From: Neil Brown <neilb@suse.de>
2 Subject: export blk_recount_segments
3
4 On Monday February 12, marcm@liquid-nexus.net wrote:
5 > >
6 > > Thanks for the quick response Neil unfortunately the kernel doesn't build with
7 > > this patch due to a missing symbol:
8 > >
9 > > WARNING: "blk_recount_segments" [drivers/md/raid456.ko] undefined!
10 > >
11 > > Is that in another file that needs patching or within raid5.c?
12
13 Yes. I keep forgetting about that bit. Sorry.
14
15 Signed-off-by: Neil Brown <neilb@suse.de>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17
18 ---
19 block/ll_rw_blk.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- linux-2.6.20.1.orig/block/ll_rw_blk.c
23 +++ linux-2.6.20.1/block/ll_rw_blk.c
24 @@ -1264,7 +1264,7 @@ new_hw_segment:
25 bio->bi_hw_segments = nr_hw_segs;
26 bio->bi_flags |= (1 << BIO_SEG_VALID);
27 }
28 -
29 +EXPORT_SYMBOL(blk_recount_segments);
30
31 static int blk_phys_contig_segment(request_queue_t *q, struct bio *bio,
32 struct bio *nxt)