kdbus: don't unlink synchronous replies
When a signal breaks a synchronous call, and a reply is received
before restart is executed, then the reply is unlinked and the restarted
call can't pick it up anymore.
But keeping only interrupted synchronous calls linked is not enough.
If a reply comes just after the signal, before marking the reply structure
as interrupted, then the reply is - again - unlinked and the restarted call
can't pick it up anymore.
This commit leaves all synchronous replies linked.
This way:
- asynchronous calls work as before the changes - replies are unlinked
by the replier in kdbus_conn_reply();
- replies for synchronous calls are unlinked by the caller in
kdbus_conn_wait_reply().
Change-Id: I0e3d8f53cf24a0aa8c59244e0768eebeb3fee110
Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>