mempool_alloc() cannot fail if the gfp flags allow
it to sleep, and GFP_NOIO allows for sleeping.
So drbd_req_new() cannot fail, and drbd_request_prepare() doesn't need
to check if it did.
Signed-off-by: NeilBrown
---
drivers/block/drbd/drbd_req.c | 11 ---
1 file
mempool_alloc() cannot fail if the gfp flags allow
it to sleep, and GFP_NOIO allows for sleeping.
So drbd_req_new() cannot fail, and drbd_request_prepare() doesn't need
to check if it did.
Signed-off-by: NeilBrown
---
drivers/block/drbd/drbd_req.c | 11 ---
1 file changed, 11
2 matches
Mail list logo