[Drbd-dev] DRBD-8 - next crash in bio_split()
Simon.Graham at stratus.com
Wed Sep 13 20:15:19 CEST 2006
Yesterday's checkins have allowed me to get past the booting stage and
I've made some good progress - however, I've started to notice system
crashes when I failover use of one of the drbd devices from one node to
the other - always inside bio_split() at an assert that there is a
single bio_vec in the array (bio->bi_vcnt==1).
I see that there has been some discussion of this previously
we are all aware that bio_split can only handle a bio with a single
bio_vec -- part of the mega-reorg of request processing was this change:
/* to make some things easier, force allignment of requests
* granularity of our hash tables */
s_enr = bio->bi_sector >> HT_SHIFT;
e_enr = (bio->bi_sector+(bio->bi_size>>9)-1) >> HT_SHIFT;
/* when not using two primaries (and not being as paranoid as
* actually there is no need to be as strict.
* only force allignment within AL_EXTENT boundaries */
s_enr = bio->bi_sector >> (AL_EXTENT_SIZE_B-9);
e_enr = (bio->bi_sector+(bio->bi_size>>9)-1) >>
Since HT_SHIFT is 9 and AL_EXTENT_SIZE_B-9 is 13, this means we are far
more likely to decide to split now and maybe it is happening where the
bi_io_vec array has more than one entry...
More information about the drbd-dev