diff options
author | NeilBrown <neilb@suse.de> | 2010-04-01 00:02:13 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 01:27:55 -0400 |
commit | 21a52c6d05c15f862797736393915bfa8cd40ee9 (patch) | |
tree | 44ffb633d209457979177a52132761a368fcb976 /drivers/md/md.h | |
parent | cca9cf90c504d98644ace52c474770970729f0eb (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/md.h')
-rw-r--r-- | drivers/md/md.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 3225e25f3c2a..a536f5458097 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h | |||
@@ -330,7 +330,7 @@ struct mdk_personality | |||
330 | int level; | 330 | int level; |
331 | struct list_head list; | 331 | struct list_head list; |
332 | struct module *owner; | 332 | struct module *owner; |
333 | int (*make_request)(struct request_queue *q, struct bio *bio); | 333 | int (*make_request)(mddev_t *mddev, struct bio *bio); |
334 | int (*run)(mddev_t *mddev); | 334 | int (*run)(mddev_t *mddev); |
335 | int (*stop)(mddev_t *mddev); | 335 | int (*stop)(mddev_t *mddev); |
336 | void (*status)(struct seq_file *seq, mddev_t *mddev); | 336 | void (*status)(struct seq_file *seq, mddev_t *mddev); |