summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2013-09-23 22:57:38 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-10-02 08:27:31 +0400
commit8c7f6e9b3321f5ede7f33974cad06db224661a42 (patch)
treebe7a59b7c74b0ec9b5ac6c86c3276bad311ff823 /drivers/infiniband
parent4a47d3a1ff10e564bf04f27ac14552df64f60cdf (diff)
downloadlinux-8c7f6e9b3321f5ede7f33974cad06db224661a42.tar.xz
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 <mst@redhat.com> Cc: Asias He <asias@redhat.com> Cc: Kent Overstreet <kmo@daterainc.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions