Re: [Linux-cluster] DLM user API for blocking AST

2016-12-20 Thread David Teigland
> > As a workaround to avoid an unwanted bast callback after a completion, I > > wonder if you could make a no-op call with NULL astaddr/astarg to prevent > > any further callback using those? > > I assume that what you call a no-op is a lock conversion towards the same > mode as before,

Re: [Linux-cluster] DLM user API for blocking AST

2016-12-19 Thread Jean-Marc Saffroy
On Mon, 19 Dec 2016, David Teigland wrote: > As a workaround to avoid an unwanted bast callback after a completion, I > wonder if you could make a no-op call with NULL astaddr/astarg to prevent > any further callback using those? I assume that what you call a no-op is a lock conversion towards

Re: [Linux-cluster] DLM user API for blocking AST

2016-12-19 Thread David Teigland
On Sun, Dec 18, 2016 at 08:42:49PM +0100, Jean-Marc Saffroy wrote: > Hi, > > Continuing with my experiments with the DLM user API, I am trying to use > blocking AST callbacks, and find that the rules for the lifetime and > ownership of the dlm_lksb struct are a bit surprising. This led me to