Fix: Use stream deletion function when cleaning up
authorDavid Goulet <dgoulet@efficios.com>
Mon, 10 Dec 2012 21:03:58 +0000 (16:03 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 10 Dec 2012 21:08:40 +0000 (16:08 -0500)
In theory, once the destroy stream ht function is called with the hash
table, it should be empty. However, for some fatal errors, it might not
so it's imperative that we gracefully delete the stream and free it
using an RCU call so both hash tables (stream and the one for the
pending command) are synchronized.

Simply freeing the stream could have created possible fd leaks and
invalid node for the data pending hash table.

Signed-off-by: David Goulet <dgoulet@efficios.com>

No differences found
This page took 0.024919 seconds and 4 git commands to generate.