All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't
@ 2006-08-08 17:47 Graham, Simon
  2006-08-09 14:28 ` Philipp Reisner
  0 siblings, 1 reply; 4+ messages in thread
From: Graham, Simon @ 2006-08-08 17:47 UTC (permalink / raw)
  To: Philipp Reisner, drbd-dev



> 
> I think you the bug you mean is the missing ChgStateHard in
> receive_state(). But before patching it in there, I wait for your
> reply.
> 

I agree - this seems like the right fix to me.
Simon

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't
@ 2006-08-07 13:12 Graham, Simon
  2006-08-08 15:17 ` Philipp Reisner
  0 siblings, 1 reply; 4+ messages in thread
From: Graham, Simon @ 2006-08-07 13:12 UTC (permalink / raw)
  To: drbd-dev

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]

In general, the state change code does the right thing in refusing
invalid state changes, however there are some cases where it rejects a
change that cannot really be rejected - for example, if the peer tells
you that it has gone diskless, it's really not possible to refuse the
state change - here's an example:

drbd15: State change failed: Refusing to be inconsistent on both
nodesdrbd15:   state = { cs:SyncTarget st:Secondary/Primary
ds:Inconsistent/UpToDate r--- }drbd15:  wanted = { cs:SyncTarget
st:Secondary/Primary ds:Inconsistent/Diskless r--- }
I'm not sure how important this is but it definitely results in the
local state being incorrect. I'm not totally sure but I suspect you
should always let the peer state change by setting the ChgStateHard flag
in the call to drbd_change_state in receive_req_state?

Simon

[-- Attachment #2: Type: text/html, Size: 2482 bytes --]

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

end of thread, other threads:[~2006-08-09 14:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-08 17:47 [Drbd-dev] DRBD 8 rejects some state changes that it shouldn't Graham, Simon
2006-08-09 14:28 ` Philipp Reisner
  -- strict thread matches above, loose matches on Subject: below --
2006-08-07 13:12 Graham, Simon
2006-08-08 15:17 ` Philipp Reisner

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.