/* Returns a i2o_block_request pointer on success or negative error code on failure.  */
static struct i2o_block_request* i2o_block_request_alloc(void)
/* Returns a i2o_block_request pointer on success or negative error code on failure.  */
static struct i2o_block_request* i2o_block_request_alloc(void)
{
	struct i2o_block_request *ireq;
	ireq = mempool_alloc(i2o_blk_req_pool.pool, GFP_ATOMIC);
	if (!ireq)
		return ERR_PTR(-ENOMEM);
	INIT_LIST_HEAD(&ireq->queue);
	sg_init_table(ireq->sg_table, I2O_MAX_PHYS_SEGMENTS);
	return ireq;
}