lkml.org 
[lkml]   [2020]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH v11 13/14] powerpc/vas: Free send window in VAS instance after credits returned
From
Date

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

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
---
arch/powerpc/platforms/powernv/vas-window.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/powernv/vas-window.c b/arch/powerpc/platforms/powernv/vas-window.c
index d0c07cf..e15b405 100644
--- a/arch/powerpc/platforms/powernv/vas-window.c
+++ b/arch/powerpc/platforms/powernv/vas-window.c
@@ -1316,14 +1316,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 */
--
1.8.3.1


\
 
 \ /
  Last update: 2020-04-16 08:09    [W:0.074 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site