diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2011-02-23 11:02:01 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-05-09 09:17:07 -0400 |
commit | 9476f39d66041ca8c66546671765b4047bffa895 (patch) | |
tree | 1416c0522fab3c228834cafbe1e1463e7900a0d0 /drivers/block/drbd/drbd_int.h | |
parent | 3c2f7a856f2e70d2f1bb59f65d97a66047f14f36 (diff) |
drbd: introduce a bio_set to allocate housekeeping bios from
Don't rely on availability of bios from the global fs_bio_set,
we should use our own bio_set for meta data IO.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 685ed4cca173..02f013a073a7 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -1522,6 +1522,12 @@ extern wait_queue_head_t drbd_pp_wait; | |||
1522 | #define DRBD_MIN_POOL_PAGES 128 | 1522 | #define DRBD_MIN_POOL_PAGES 128 |
1523 | extern mempool_t *drbd_md_io_page_pool; | 1523 | extern mempool_t *drbd_md_io_page_pool; |
1524 | 1524 | ||
1525 | /* We also need to make sure we get a bio | ||
1526 | * when we need it for housekeeping purposes */ | ||
1527 | extern struct bio_set *drbd_md_io_bio_set; | ||
1528 | /* to allocate from that set */ | ||
1529 | extern struct bio *bio_alloc_drbd(gfp_t gfp_mask); | ||
1530 | |||
1525 | extern rwlock_t global_state_lock; | 1531 | extern rwlock_t global_state_lock; |
1526 | 1532 | ||
1527 | extern struct drbd_conf *drbd_new_device(unsigned int minor); | 1533 | extern struct drbd_conf *drbd_new_device(unsigned int minor); |