diff options
| author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-04-03 02:06:25 -0700 |
|---|---|---|
| committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-08 11:57:09 +0530 |
| commit | fe1cedc1a960493337676885881018e4687c12a2 (patch) | |
| tree | 61c89060d8812f03adeea7b3b4a15ae40b12f014 /libglusterfsclient/src/libglusterfsclient.c | |
| parent | 3acd56bec5afef9db673ae8d7dbe52bc7943b298 (diff) | |
io-threads: Refactor ordered worker exit path
This patch re-factors the exit path of an ordered worker
on a time-out. Earlier we're checking for exit permission
in such a way that required us to release and acquire
the worker lock a second time in the worker loop opening
a window wherein a new request could've been appended to the
request queue.
This patch makes the decision to exit while still holding on to the
worker lock.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.c')
0 files changed, 0 insertions, 0 deletions
