summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-22 03:59:30 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-22 13:07:40 +0530
commitbc1dff620cc185c3e08853b9b7fb4c5a04c48ebe (patch)
tree96f9357f33f2b1938e3a95eb2d78f5e22443e60b
parentcf508025fe506a507fe16ed52df74dc7e0ca7c64 (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>
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c7
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 dc2432c4144..235ba31584f 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);