From bc1dff620cc185c3e08853b9b7fb4c5a04c48ebe Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Wed, 22 Apr 2009 03:59:30 +0530 Subject: handle iobuf NULL return case in fuse-bridge, by waiting 10 seconds and trying again Signed-off-by: Anand V. Avati --- xlators/mount/fuse/src/fuse-bridge.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xlators/mount/fuse') 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); -- cgit