diff options
author | NeilBrown <neilb@suse.de> | 2010-03-25 16:06:03 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 15:27:50 +1000 |
commit | 2b7f22284d71975e37a82db154386348eec0e52c (patch) | |
tree | 761ac50d75348c43e38745f10b824efa5c3388cd /drivers/md | |
parent | a78d38a1a16c8e009aa512caa71d483757fefc1c (diff) | |
download | linux-2b7f22284d71975e37a82db154386348eec0e52c.tar.bz2 |
md/raid5: small tidyup in raid5_align_endio
Diving through ->queue to find mddev is unnecessarily complex - there
is an easier path to finding mddev, so use that.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 020143dec180..7bfeba3ce1e0 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -3713,10 +3713,10 @@ static void raid5_align_endio(struct bio *bi, int error) bio_put(bi); - mddev = raid_bi->bi_bdev->bd_disk->queue->queuedata; - conf = mddev->private; rdev = (void*)raid_bi->bi_next; raid_bi->bi_next = NULL; + mddev = rdev->mddev; + conf = mddev->private; rdev_dec_pending(rdev, conf->mddev); |