diff options
| -rw-r--r-- | block/blk-mq.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-bio-prison-v1.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-bio-prison-v2.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-io.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-kcopyd.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-region-hash.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-snap.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-thin.c | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 6332940ca118..d2de0a719ab8 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
| @@ -1475,7 +1475,7 @@ static void blk_mq_run_work_fn(struct work_struct *work) | |||
| 1475 | * If we are stopped, don't run the queue. | 1475 | * If we are stopped, don't run the queue. |
| 1476 | */ | 1476 | */ |
| 1477 | if (test_bit(BLK_MQ_S_STOPPED, &hctx->state)) | 1477 | if (test_bit(BLK_MQ_S_STOPPED, &hctx->state)) |
| 1478 | clear_bit(BLK_MQ_S_STOPPED, &hctx->state); | 1478 | return; |
| 1479 | 1479 | ||
| 1480 | __blk_mq_run_hw_queue(hctx); | 1480 | __blk_mq_run_hw_queue(hctx); |
| 1481 | } | 1481 | } |
diff --git a/drivers/md/dm-bio-prison-v1.c b/drivers/md/dm-bio-prison-v1.c index 8e33a3808368..e794e3662fdd 100644 --- a/drivers/md/dm-bio-prison-v1.c +++ b/drivers/md/dm-bio-prison-v1.c | |||
| @@ -33,7 +33,7 @@ static struct kmem_cache *_cell_cache; | |||
| 33 | */ | 33 | */ |
| 34 | struct dm_bio_prison *dm_bio_prison_create(void) | 34 | struct dm_bio_prison *dm_bio_prison_create(void) |
| 35 | { | 35 | { |
| 36 | struct dm_bio_prison *prison = kmalloc(sizeof(*prison), GFP_KERNEL); | 36 | struct dm_bio_prison *prison = kzalloc(sizeof(*prison), GFP_KERNEL); |
| 37 | int ret; | 37 | int ret; |
| 38 | 38 | ||
| 39 | if (!prison) | 39 | if (!prison) |
diff --git a/drivers/md/dm-bio-prison-v2.c b/drivers/md/dm-bio-prison-v2.c index 601b1569206a..f866bc97b032 100644 --- a/drivers/md/dm-bio-prison-v2.c +++ b/drivers/md/dm-bio-prison-v2.c | |||
| @@ -35,7 +35,7 @@ static struct kmem_cache *_cell_cache; | |||
| 35 | */ | 35 | */ |
| 36 | struct dm_bio_prison_v2 *dm_bio_prison_create_v2(struct workqueue_struct *wq) | 36 | struct dm_bio_prison_v2 *dm_bio_prison_create_v2(struct workqueue_struct *wq) |
| 37 | { | 37 | { |
| 38 | struct dm_bio_prison_v2 *prison = kmalloc(sizeof(*prison), GFP_KERNEL); | 38 | struct dm_bio_prison_v2 *prison = kzalloc(sizeof(*prison), GFP_KERNEL); |
| 39 | int ret; | 39 | int ret; |
| 40 | 40 | ||
| 41 | if (!prison) | 41 | if (!prison) |
diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c index 53c6ed0eaa1f..81ffc59d05c9 100644 --- a/drivers/md/dm-io.c +++ b/drivers/md/dm-io.c | |||
| @@ -51,7 +51,7 @@ struct dm_io_client *dm_io_client_create(void) | |||
| 51 | unsigned min_ios = dm_get_reserved_bio_based_ios(); | 51 | unsigned min_ios = dm_get_reserved_bio_based_ios(); |
| 52 | int ret; | 52 | int ret; |
| 53 | 53 | ||
| 54 | client = kmalloc(sizeof(*client), GFP_KERNEL); | 54 | client = kzalloc(sizeof(*client), GFP_KERNEL); |
| 55 | if (!client) | 55 | if (!client) |
| 56 | return ERR_PTR(-ENOMEM); | 56 | return ERR_PTR(-ENOMEM); |
| 57 | 57 | ||
diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c index c89a675a2aac..ce7efc7434be 100644 --- a/drivers/md/dm-kcopyd.c +++ b/drivers/md/dm-kcopyd.c | |||
| @@ -882,7 +882,7 @@ struct dm_kcopyd_client *dm_kcopyd_client_create(struct dm_kcopyd_throttle *thro | |||
| 882 | int r; | 882 | int r; |
| 883 | struct dm_kcopyd_client *kc; | 883 | struct dm_kcopyd_client *kc; |
| 884 | 884 | ||
| 885 | kc = kmalloc(sizeof(*kc), GFP_KERNEL); | 885 | kc = kzalloc(sizeof(*kc), GFP_KERNEL); |
| 886 | if (!kc) | 886 | if (!kc) |
| 887 | return ERR_PTR(-ENOMEM); | 887 | return ERR_PTR(-ENOMEM); |
| 888 | 888 | ||
diff --git a/drivers/md/dm-region-hash.c b/drivers/md/dm-region-hash.c index 43149eb49375..abf3521b80a8 100644 --- a/drivers/md/dm-region-hash.c +++ b/drivers/md/dm-region-hash.c | |||
| @@ -180,7 +180,7 @@ struct dm_region_hash *dm_region_hash_create( | |||
| 180 | ; | 180 | ; |
| 181 | nr_buckets >>= 1; | 181 | nr_buckets >>= 1; |
| 182 | 182 | ||
| 183 | rh = kmalloc(sizeof(*rh), GFP_KERNEL); | 183 | rh = kzalloc(sizeof(*rh), GFP_KERNEL); |
| 184 | if (!rh) { | 184 | if (!rh) { |
| 185 | DMERR("unable to allocate region hash memory"); | 185 | DMERR("unable to allocate region hash memory"); |
| 186 | return ERR_PTR(-ENOMEM); | 186 | return ERR_PTR(-ENOMEM); |
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index b11ddc55f297..f745404da721 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
| @@ -1120,7 +1120,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
| 1120 | origin_mode = FMODE_WRITE; | 1120 | origin_mode = FMODE_WRITE; |
| 1121 | } | 1121 | } |
| 1122 | 1122 | ||
| 1123 | s = kmalloc(sizeof(*s), GFP_KERNEL); | 1123 | s = kzalloc(sizeof(*s), GFP_KERNEL); |
| 1124 | if (!s) { | 1124 | if (!s) { |
| 1125 | ti->error = "Cannot allocate private snapshot structure"; | 1125 | ti->error = "Cannot allocate private snapshot structure"; |
| 1126 | r = -ENOMEM; | 1126 | r = -ENOMEM; |
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 6c923824ec91..5772756c63c1 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c | |||
| @@ -2861,7 +2861,7 @@ static struct pool *pool_create(struct mapped_device *pool_md, | |||
| 2861 | return (struct pool *)pmd; | 2861 | return (struct pool *)pmd; |
| 2862 | } | 2862 | } |
| 2863 | 2863 | ||
| 2864 | pool = kmalloc(sizeof(*pool), GFP_KERNEL); | 2864 | pool = kzalloc(sizeof(*pool), GFP_KERNEL); |
| 2865 | if (!pool) { | 2865 | if (!pool) { |
| 2866 | *error = "Error allocating memory for pool"; | 2866 | *error = "Error allocating memory for pool"; |
| 2867 | err_p = ERR_PTR(-ENOMEM); | 2867 | err_p = ERR_PTR(-ENOMEM); |
