From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: Re: [Patch 4/7] tabled: retry conflicting locks
Date: Wed, 20 Jan 2010 15:56:45 -0700 [thread overview]
Message-ID: <20100120155645.3efb78fe@redhat.com> (raw)
In-Reply-To: <4B577D0D.4040908@garzik.org>
> >> This is not correct. CLD has blocking locks. You issue the LOCK op,
> >> and will be notified when you have acquired the lock, possibly hours or
> >> days later. There is no need to retry anything...
> >
> > Meanwhile, there's no way to cancel an outstanding lock requiest
> > short of blowing off the whole session. I'll switch to LOCK when
> > you fix that, but currently TRYLOCK is the only way (which BTW you
> > use in cldcli too).
>
> Do you mean cancelling someone else's lock request? That is not
> something that meshes with the design. If you mean cancelling your own
> lock request, that's probably reasonable.
Own of course.
> If there is a problem implementing blocking locks in the protocol or
> client, let me know, and we'll fix it.
Is there a way to cancel an outstanding lock request? How? You seem
to think that there's no problem.
Actually I think an cmo_close on a handle that has outstanding
requests of any kind should drop them, so I was incorrect about
killing the session being the only way. Maybe I can create some
kind of ncld_open_locked() by using that feature. That ought to
be good enough.
-- Pete
next prev parent reply other threads:[~2010-01-20 22:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-15 4:13 [Patch 4/7] tabled: retry conflicting locks Pete Zaitcev
2010-01-20 19:53 ` Jeff Garzik
2010-01-20 20:16 ` Pete Zaitcev
2010-01-20 22:00 ` Jeff Garzik
2010-01-20 22:56 ` Pete Zaitcev [this message]
2010-02-03 23:10 ` Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100120155645.3efb78fe@redhat.com \
--to=zaitcev@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.