aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/faulty.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-04-01 00:02:13 -0400
committerNeilBrown <neilb@suse.de>2010-05-18 01:27:55 -0400
commit21a52c6d05c15f862797736393915bfa8cd40ee9 (patch)
tree44ffb633d209457979177a52132761a368fcb976 /drivers/md/faulty.c
parentcca9cf90c504d98644ace52c474770970729f0eb (diff)
md: pass mddev to make_request functions rather than request_queue
We used to pass the personality make_request function direct to the block layer so the first argument had to be a queue. But now we have the intermediary md_make_request so it makes at lot more sense to pass a struct mddev_s. It makes it possible to have an mddev without its own queue too. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/faulty.c')
-rw-r--r--drivers/md/faulty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c
index 608a8d3736e2..bd4348f6be0b 100644
--- a/drivers/md/faulty.c
+++ b/drivers/md/faulty.c
@@ -168,9 +168,8 @@ static void add_sector(conf_t *conf, sector_t start, int mode)
168 conf->nfaults = n+1; 168 conf->nfaults = n+1;
169} 169}
170 170
171static int make_request(struct request_queue *q, struct bio *bio) 171static int make_request(mddev_t *mddev, struct bio *bio)
172{ 172{
173 mddev_t *mddev = q->queuedata;
174 conf_t *conf = mddev->private; 173 conf_t *conf = mddev->private;
175 int failit = 0; 174 int failit = 0;
176 175