block, drbd: fix drbd_req_new() initialization
authorDavid Rientjes <rientjes@google.com>
Tue, 24 Mar 2015 23:22:32 +0000 (16:22 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 25 Mar 2015 02:00:16 +0000 (20:00 -0600)
commit23fe8f8b1101ec77befc995ab15fad82d9d91d16
treedd198fb89b2f677bd8bc3d085579827fded8237b
parentea7618ecb244b36bf6e1ba00b7de801dc1e9a951
block, drbd: fix drbd_req_new() initialization

mempool_alloc() does not support __GFP_ZERO since elements may come from
memory that has already been released by mempool_free().

Remove __GFP_ZERO from mempool_alloc() in drbd_req_new() and properly
initialize it to 0.

Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_req.c