diff options
author | NeilBrown <neilb@suse.de> | 2010-03-25 01:06:03 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 01:27:50 -0400 |
commit | 2b7f22284d71975e37a82db154386348eec0e52c (patch) | |
tree | 761ac50d75348c43e38745f10b824efa5c3388cd /drivers/md | |
parent | a78d38a1a16c8e009aa512caa71d483757fefc1c (diff) |
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) | |||
3713 | 3713 | ||
3714 | bio_put(bi); | 3714 | bio_put(bi); |
3715 | 3715 | ||
3716 | mddev = raid_bi->bi_bdev->bd_disk->queue->queuedata; | ||
3717 | conf = mddev->private; | ||
3718 | rdev = (void*)raid_bi->bi_next; | 3716 | rdev = (void*)raid_bi->bi_next; |
3719 | raid_bi->bi_next = NULL; | 3717 | raid_bi->bi_next = NULL; |
3718 | mddev = rdev->mddev; | ||
3719 | conf = mddev->private; | ||
3720 | 3720 | ||
3721 | rdev_dec_pending(rdev, conf->mddev); | 3721 | rdev_dec_pending(rdev, conf->mddev); |
3722 | 3722 | ||