diff options
| -rw-r--r-- | drivers/md/bcache/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index f47ecb5cb318..5fa3cd2d9ff0 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c | |||
| @@ -64,9 +64,11 @@ struct workqueue_struct *bcache_wq; | |||
| 64 | 64 | ||
| 65 | static void bio_split_pool_free(struct bio_split_pool *p) | 65 | static void bio_split_pool_free(struct bio_split_pool *p) |
| 66 | { | 66 | { |
| 67 | if (p->bio_split_hook) | ||
| 68 | mempool_destroy(p->bio_split_hook); | ||
| 69 | |||
| 67 | if (p->bio_split) | 70 | if (p->bio_split) |
| 68 | bioset_free(p->bio_split); | 71 | bioset_free(p->bio_split); |
| 69 | |||
| 70 | } | 72 | } |
| 71 | 73 | ||
| 72 | static int bio_split_pool_init(struct bio_split_pool *p) | 74 | static int bio_split_pool_init(struct bio_split_pool *p) |
