dm snapshot: use GFP_KERNEL when initializing exceptions
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 14 Jan 2014 00:13:36 +0000 (19:13 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 14 Jan 2014 16:18:16 +0000 (11:18 -0500)
commit119bc547362e5252074f81f56b8fcdac45cedff4
tree57f4c605fc2e70993cadc426fd9f6cf5c4c9c1de
parent6a388618f120cdc70cd6b6dbcab5f7a4aff500f6
dm snapshot: use GFP_KERNEL when initializing exceptions

The list of initial exceptions is loaded in the target constructor.  We
are allowed to allocate memory with GFP_KERNEL at this point.  So,
change alloc_completed_exception to use GFP_KERNEL when being called
from the constructor.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-snap.c