summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-03-25 16:06:03 +1100
committerNeilBrown <neilb@suse.de>2010-05-18 15:27:50 +1000
commit2b7f22284d71975e37a82db154386348eec0e52c (patch)
tree761ac50d75348c43e38745f10b824efa5c3388cd /drivers/md
parenta78d38a1a16c8e009aa512caa71d483757fefc1c (diff)
downloadlinux-3.10-2b7f22284d71975e37a82db154386348eec0e52c.tar.gz
linux-3.10-2b7f22284d71975e37a82db154386348eec0e52c.tar.bz2
linux-3.10-2b7f22284d71975e37a82db154386348eec0e52c.zip
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 020143dec18..7bfeba3ce1e 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);