linux_dsm_epyc7002/drivers/misc/cxl
Ian Munsie 8ac75b96be cxl: Use call_rcu to reduce latency when releasing the afu fd
The afu fd release path was identified as a significant bottleneck in
the overall performance of cxl. While an optimal AFU design would
minimise the need to close & reopen the AFU fd, it is not always
practical to avoid.

The bottleneck seems to be down to the call to synchronize_rcu(), which
will block until every other thread is guaranteed to be out of an RCU
critical section. Replace it with call_rcu() to free the context
structures later so we can return to the application sooner.

This reduces the time spent in the fd release path from 13356 usec to
13.3 usec - about a 100x speed up.

Reported-by: Fei K Chen <uchen@cn.ibm.com>
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-06-03 13:27:15 +10:00
..
base.c
context.c cxl: Use call_rcu to reduce latency when releasing the afu fd 2015-06-03 13:27:15 +10:00
cxl.h cxl: Use call_rcu to reduce latency when releasing the afu fd 2015-06-03 13:27:15 +10:00
debugfs.c
fault.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
file.c cxl: Implement an ioctl to fetch afu card-id, offset-id and mode 2015-06-03 13:27:15 +10:00
irq.c cxl: Add missing return statement after handling AFU errror 2015-02-06 11:17:27 +11:00
Kconfig cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
main.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
Makefile cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
native.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
pci.c cxl: Export AFU error buffer via sysfs 2015-06-03 13:27:15 +10:00
sysfs.c cxl: Export AFU error buffer via sysfs 2015-06-03 13:27:15 +10:00
trace.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
trace.h cxl: Add tracepoints 2015-01-22 17:31:51 +11:00