All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] Garbage ERESTARTSYS in dlmdomain.c?
@ 2009-08-31 21:14 Joel Becker
  2009-08-31 21:56 ` Mark Fasheh
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Becker @ 2009-08-31 21:14 UTC (permalink / raw)
  To: ocfs2-devel

Look at this code from dlmdomain.c:

-----------------------------------------------------------------------
                /* If we're racing another node to the join, then we
                 * need to back off temporarily and let them
                 * complete. */
#define DLM_JOIN_TIMEOUT_MSECS  90000
                if (status == -EAGAIN) {
                        if (signal_pending(current)) {
                                status = -ERESTARTSYS;
                                goto bail;
                        }

                        if (total_backoff >
                            msecs_to_jiffies(DLM_JOIN_TIMEOUT_MSECS)) {
                                status = -ERESTARTSYS;
                                mlog(ML_NOTICE, "Timed out joining dlm domain "
                                     "%s after %u msecs\n", dlm->name,
                                     jiffies_to_msecs(total_backoff));
                                goto bail;
                        }
-----------------------------------------------------------------------

Why are we returning -ERESTARTSYS when there isn't a signal pending?
This seems like it could totally do something weird, like have entry.S
get confused.

Joel

-- 

"If you took all of the grains of sand in the world, and lined
 them up end to end in a row, you'd be working for the government!"
	- Mr. Interesting

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Ocfs2-devel] Garbage ERESTARTSYS in dlmdomain.c?
  2009-08-31 21:14 [Ocfs2-devel] Garbage ERESTARTSYS in dlmdomain.c? Joel Becker
@ 2009-08-31 21:56 ` Mark Fasheh
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Fasheh @ 2009-08-31 21:56 UTC (permalink / raw)
  To: ocfs2-devel

On Mon, Aug 31, 2009 at 02:14:45PM -0700, Joel Becker wrote:
> Look at this code from dlmdomain.c:
> 
> -----------------------------------------------------------------------
>                 /* If we're racing another node to the join, then we
>                  * need to back off temporarily and let them
>                  * complete. */
> #define DLM_JOIN_TIMEOUT_MSECS  90000
>                 if (status == -EAGAIN) {
>                         if (signal_pending(current)) {
>                                 status = -ERESTARTSYS;
>                                 goto bail;
>                         }
> 
>                         if (total_backoff >
>                             msecs_to_jiffies(DLM_JOIN_TIMEOUT_MSECS)) {
>                                 status = -ERESTARTSYS;


> Why are we returning -ERESTARTSYS when there isn't a signal pending?
> This seems like it could totally do something weird, like have entry.S
> get confused.

Yeah, I think that the timeout error should be returning -EAGAIN. It doesn't
make any sense for it to be -ERESTARTSYS...
	--Mark

--
Mark Fasheh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-31 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31 21:14 [Ocfs2-devel] Garbage ERESTARTSYS in dlmdomain.c? Joel Becker
2009-08-31 21:56 ` Mark Fasheh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.