diff options
author | Anand V. Avati <avati@amp.gluster.com> | 2009-04-22 03:59:30 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-22 13:07:40 +0530 |
commit | bc1dff620cc185c3e08853b9b7fb4c5a04c48ebe (patch) | |
tree | 96f9357f33f2b1938e3a95eb2d78f5e22443e60b /xlators/mount/fuse | |
parent | cf508025fe506a507fe16ed52df74dc7e0ca7c64 (diff) |
handle iobuf NULL return case in fuse-bridge, by waiting 10 seconds and trying again
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/mount/fuse')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index dc2432c41..235ba3158 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -2565,6 +2565,13 @@ fuse_thread_proc (void *data) while (!fuse_session_exited (priv->se)) { iobuf = iobuf_get (this->ctx->iobuf_pool); + if (!iobuf) { + gf_log (this->name, GF_LOG_ERROR, + "Out of memory"); + sleep (10); + continue; + } + res = fuse_chan_receive (priv->ch, iobuf->ptr, chan_size); |