diff options
author | Jakub Kicinski <[email protected]> | 2018-04-24 21:17:01 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-04-25 14:07:04 -0400 |
commit | 3e3e9fd8b6f0dd2d387d0dc666b770fe0dc36b33 (patch) | |
tree | 2c224ad747e799472ce88c6c0dee3deb6f293db1 /lib/mpi/mpiutil.c | |
parent | c77bbc648faf4a6647c4f4446ca82e231475ffb5 (diff) |
nfp: reset local locks on init
NFP locks record the owner when held, for PCIe devices the owner
ID will be the PCIe link number. When driver loads it should scan
known locks and if they indicate that they are held by local
endpoint but the driver doesn't hold them - release them.
Locks can be left taken for instance when kernel gets kexec-ed or
after a crash. Management FW tries to clean up stale locks too,
but it currently depends on PCIe link going down which doesn't
always happen.
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Dirk van der Merwe <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions