From: Nicholas Bellinger Date: Mon, 23 Sep 2013 18:57:38 +0000 (-0700) Subject: target: Fall back to vzalloc upon ->sess_cmd_map kzalloc failure X-Git-Tag: v3.12-rc4~2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c7f6e9b3321f5ede7f33974cad06db224661a42;p=pandora-kernel.git target: Fall back to vzalloc upon ->sess_cmd_map kzalloc failure This patch changes transport_alloc_session_tags() to fall back to use vzalloc when kzalloc fails for big tag_num that end up generating larger order allocations. Also use is_vmalloc_addr() in transport_alloc_session_tags() failure path, and normal transport_free_session() path to determine when vfree() needs to be called instead of kfree(). v2 changes: - Use __GFP_NOWARN | __GFP_REPEAT for sess_cmd_map kzalloc (mst) Cc: Michael S. Tsirkin Cc: Asias He Cc: Kent Overstreet Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed