2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/drivers/infiniband/hw
Mike Marciniszyn 16170d9c10 IB/hfi1: Rework debugfs to use SRCU
The debugfs RCU trips many debug kernel warnings because of potential
sleeps with an RCU read lock held. This includes both user copy calls
and slab allocations throughout the file.

This patch switches the RCU to use SRCU for file remove/access
race protection.

In one case, the SRCU is implicit in the use of the raw debugfs file
object and just works.

In the seq_file case, a wrapper around seq_read() and seq_lseek() is
used to enforce the SRCU using the debugfs supplied functions
debugfs_use_file_start() and debugfs_use_file_stop().

The sychronize_rcu() is deleted since the SRCU prevents the remove
access race.

The RCU locking is kept for qp_stats since the QP hash list is
protected using the non-sleepable RCU.

Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2016-09-02 14:26:55 -04:00
..
cxgb3 Merge branches 'cxgb4' and 'mlx5' into k.o/for-4.8 2016-08-03 20:58:45 -04:00
cxgb4 IB/cxgb4: Make _free_qp static to silence build warning 2016-09-02 13:46:33 -04:00
hfi1 IB/hfi1: Rework debugfs to use SRCU 2016-09-02 14:26:55 -04:00
i40iw i40iw: Receive notification events correctly 2016-08-26 09:59:13 -04:00
mlx4 IB/mlx4: Don't return errors from poll_cq 2016-09-02 14:11:38 -04:00
mlx5 IB/mlx5: Don't return errors from poll_cq 2016-09-02 14:11:40 -04:00
mthca Merge branches 'misc' and 'rxe' into k.o/for-4.8-1 2016-08-04 11:13:47 -04:00
nes IB/nes: Support device FW version string 2016-06-23 12:08:34 -04:00
ocrdma RDMA/ocrdma: Fix the max_sge reported from FW 2016-08-24 11:31:40 -04:00
qib IB/qib: Use memdup_user() rather than duplicating its implementation 2016-08-23 12:38:24 -04:00
usnic IB/usnic: Fix error return code 2016-08-22 14:31:43 -04:00
Makefile IB/hfi1: Move driver out of staging 2016-05-26 11:35:14 -04:00