Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dm-thin] Add comment clarifying mempool behaviour.
  • Loading branch information
jthornber committed Jan 22, 2013
1 parent cf5273f commit 6e77ba5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/md/dm-bio-prison.h
Expand Up @@ -44,6 +44,11 @@ struct dm_bio_prison_cell {
struct dm_bio_prison *dm_bio_prison_create(unsigned nr_cells);
void dm_bio_prison_destroy(struct dm_bio_prison *prison);

/*
* Although this is using a mempool to allocate from, it's using GFP_NOIO
* which is an alias for GFP_NOWAIT. If I read the mempool code correctly
* this _can_ fail.
*/
struct dm_bio_prison_cell *dm_bio_prison_alloc_cell(struct dm_bio_prison *prison,
gfp_t gfp);
void dm_bio_prison_free_cell(struct dm_bio_prison *prison,
Expand Down

0 comments on commit 6e77ba5

Please sign in to comment.