Skip to content

Commit 8e2fd0b

Browse files
authored
core: The brick process is getting crash during upcall event (#4256)
A brick process may crash while it try to send upcall notification to the client and client disconnect is being process. Solution: Avoid upcall event notification to the client if disconnect is being process for the same client. Fixes: #4255 Change-Id: I80478d7f4a038b04a10fb21a1290b4309e9fe4dd Signed-off-by: Mohit Agrawal <[email protected]>
1 parent 650ab3a commit 8e2fd0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xlators/protocol/server/src/server.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,6 +1469,12 @@ server_process_event_upcall(xlator_t *this, void *data)
14691469
if (!client || strcmp(client->client_uid, client_uid))
14701470
continue;
14711471

1472+
/* Avoid upcall notification to client if disconnect is in
1473+
progress
1474+
*/
1475+
if (GF_ATOMIC_GET(xprt->disconnect_progress))
1476+
continue;
1477+
14721478
xprt_found = _gf_true;
14731479
rpc_transport_ref(xprt);
14741480
break;

0 commit comments

Comments
 (0)