mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
md/raid5: fix init_stripe() inconsistencies
raid5: fix init_stripe() inconsistencies 1) remove_hash() is not necessary. We will only be called right after get_free_stripe(). There we have already a call to remove_hash(). 2) Tracing prints out the sector of the freed stripe and not the sector that we want to initialize. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
c4796e215f
commit
b8e6a15a1a
@ -531,9 +531,7 @@ static void init_stripe(struct stripe_head *sh, sector_t sector, int previous)
|
||||
BUG_ON(stripe_operations_active(sh));
|
||||
|
||||
pr_debug("init_stripe called, stripe %llu\n",
|
||||
(unsigned long long)sh->sector);
|
||||
|
||||
remove_hash(sh);
|
||||
(unsigned long long)sector);
|
||||
retry:
|
||||
seq = read_seqcount_begin(&conf->gen_lock);
|
||||
sh->generation = conf->generation - previous;
|
||||
|
Loading…
Reference in New Issue
Block a user