Skip to contentSkip to conversation

powerpc/vas: Free send window in VAS instance after credits returned

PATCH In review Haren Myneni 1 participant 1 message Nov 27, 2019 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 14/14 powerpc/vas: Free send window in VAS instance after credits returned

NX may be processing requests while trying to close window. Wait until all credits are returned and then free send window from VAS instance.

---
 arch/powerpc/platforms/powernv/vas-window.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/powernv/vas-window.c +2 -2
index 9ba354c..244952d7 100644
@@ -1319,14 +1319,14 @@ int vas_win_close(struct vas_window *window)
 
 	unmap_paste_region(window);
 
-	clear_vinst_win(window);
-
 	poll_window_busy_state(window);
 
 	unpin_close_window(window);
 
 	poll_window_credits(window);
 
+	clear_vinst_win(window);
+
 	poll_window_castout(window);
 
 	/* if send window, drop reference to matching receive window */
Signature · 1 line
1.8.3.1