aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp
diff options
context:
space:
mode:
authorKaike Wan <kaike.wan@intel.com>2015-10-30 08:23:45 -0400
committerDoug Ledford <dledford@redhat.com>2015-12-07 16:43:01 -0500
commit3ebd2fd0d0119a5ac7906bf17be637b527f63d31 (patch)
tree518ee72b3460856c4eef08f6cf19d46d860b1d1c /drivers/infiniband/ulp/srp
parentIB/iser: use sector_div instead of do_div (diff)
downloadlinux-dev-3ebd2fd0d0119a5ac7906bf17be637b527f63d31.tar.xz
linux-dev-3ebd2fd0d0119a5ac7906bf17be637b527f63d31.zip
IB/sa: Put netlink request into the request list before sending
It was found by Saurabh Sengar that the netlink code tried to allocate memory with GFP_KERNEL while holding a spinlock. While it is possible to fix the issue by replacing GFP_KERNEL with GFP_ATOMIC, it is better to get rid of the spinlock while sending the packet. However, in order to protect against a race condition that a quick response may be received before the request is put on the request list, we need to put the request on the list first. Signed-off-by: Kaike Wan <kaike.wan@intel.com> Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reported-by: Saurabh Sengar <saurabh.truth@gmail.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp')
0 files changed, 0 insertions, 0 deletions