OpenCloudOS-Kernel/drivers/ntb/test
Logan Gunthorpe 35539b54ac ntb_perf: clear link_is_up flag when the link goes down.
When the link goes down, the link_is_up flag did not return to
false. This could have caused some subtle corner case bugs
when the link goes up and down quickly.

Once that was fixed, there was found to be a race if the link was
brought down then immediately up. The link_cleanup work would
occasionally be scheduled after the next link up event. This would
cancel the link_work that was supposed to occur and leave ntb_perf
in an unusable state.

To fix this we get rid of the link_cleanup work and put the actions
directly in the link_down event.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2016-08-05 10:21:08 -04:00
..
Kconfig ntb: ntb perf tool 2016-01-17 22:08:05 -05:00
Makefile ntb: ntb perf tool 2016-01-17 22:08:05 -05:00
ntb_perf.c ntb_perf: clear link_is_up flag when the link goes down. 2016-08-05 10:21:08 -04:00
ntb_pingpong.c ntb_pingpong: Add a debugfs file to get the ping count 2016-08-05 10:21:07 -04:00
ntb_tool.c ntb_tool: Add link status and files to debugfs 2016-08-05 10:21:07 -04:00