adding locks to access global mr list
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
tasks pool got empty when writing ("rdma read") 1 MB of data
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
release global data memory region upon pool free

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Merge pull request #6 from rosenbaumalex/master

Modify some RDMA_CM control path log messages to be less verbos
xio_shutdown protection againt multiple calls failed

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Merge branch 'master' of github.com:accelio/accelio
xio_mr_list_free crashed due to iteration on a list.
the iterator was modified during the iteration
Revamping disconnect:
1  xio_disconnect is now used only to initiate the disconnection of
   live connections
2. xio_connection_destroy is used to destroy the connection including
   the connection internal resources. this function shall be called by the
   user when all of the connection's resources are no longer in use, and
   after the library triggred "connection teardown" event.

motivation:
on server side, upon unexpected disconnection, the connection resources that
were at that time in use with the application, could theoretically released
under the hood, by the library. from now on the server side should call
explictly xio_connection_destroy to release the connection and its resources.

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
1. xio_context revamp - embedding the event loop entity into the context
2. ev_loop API is now deprecated.
3. dispatch default behavior comply with epoll. (default is level triggered)

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
comments update for doxygen

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Bug #1271109 - Possible use after release

kref_put may call xio_conn_delayed_close which may
free the conn, however conn is referenced later.

resolution: kref_put was moved to funcion end

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
xio_mr_list_free used memory after it was released.
resolution: protecting mr list upon deregisterion

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
storing connections in context connections list.

This allows searching for connections in fast path  without need to lock
previously, connection was searched within the session's connections list
since the session is shared by threads, a lock was needed.

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
no need for falg when adding wake up event to epoll

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
removed unused structures

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
introducing xio_read_lat and xio_read_bw - Accelio's performence tests

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Ubuntu compilation errors

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Add check for libaio in configure.ac
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
creating automatic version.c to embed  the hash of of the current build into
the binary.
later to be viewed with strings on libxio.so

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
work on kernel modules reviving

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>