Re: [PATCH] NTB: ntb_transport: Free MWs in ntb_transport_link_cleanup()

2019-02-11 Thread Jon Mason
On Mon, Jan 07, 2019 at 06:16:02PM -0700, Logan Gunthorpe wrote: > > > On 06/01/19 08:12 PM, Joey Zhang wrote: > > If NTB peer host crashes or reboots, the NTB transport link will be > > down and the MWs of NTB transport will be invalid. But the > > ntb_transport_link_cleanup() does not free

Re: [PATCH] NTB: ntb_transport: Free MWs in ntb_transport_link_cleanup()

2019-01-07 Thread Logan Gunthorpe
On 06/01/19 08:12 PM, Joey Zhang wrote: > If NTB peer host crashes or reboots, the NTB transport link will be > down and the MWs of NTB transport will be invalid. But the > ntb_transport_link_cleanup() does not free these invalid MWs. When > the NTB peer host is recovered later, NTB transport

[PATCH] NTB: ntb_transport: Free MWs in ntb_transport_link_cleanup()

2019-01-06 Thread Joey Zhang
If NTB peer host crashes or reboots, the NTB transport link will be down and the MWs of NTB transport will be invalid. But the ntb_transport_link_cleanup() does not free these invalid MWs. When the NTB peer host is recovered later, NTB transport link will be up and the ntb_set_mw() will not reset