]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix sleep inside atomic issue in init_asic_data
authorTadeusz Struk <tadeusz.struk@intel.com>
Wed, 6 Jul 2016 21:14:47 +0000 (17:14 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 12 Jul 2016 14:46:24 +0000 (10:46 -0400)
commit852848947788e06a631d1bcfffaa456348d388e0
tree4b15d13bca8be3cb662896164d3bf04bac91ede9
parent749e1038e77582dc893ad98d0e4b27dbbf8cce83
IB/hfi1: Fix sleep inside atomic issue in init_asic_data

The critical section should protect only the list traversal
and dd->asic_data modification, not the memory allocation.
The fix pulls the allocation out of the critical section.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c