All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Olaf Kirch <okir@suse.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
	nfs@lists.sourceforge.net, akpm@osdl.org
Subject: Re: [PATCH fs/locks 2 of 3] Use proper tgid in locks_remove_posix
Date: Mon, 11 Jul 2005 09:33:11 -0400	[thread overview]
Message-ID: <42D27517.5090803@redhat.com> (raw)
In-Reply-To: <20050711131639.GU27163@suse.de>

Olaf Kirch wrote:

>On Mon, Jul 11, 2005 at 09:02:21AM -0400, Trond Myklebust wrote:
>  
>
>>For posix locks we should pretty much be ignoring the value of fl_pid.
>>It gets returned to the user in a F_GETLK call, but all the low-level
>>functions (such as posix_same_owner) should be testing the value of
>>fl_owner instead.
>>
>>The exception here is nlmsvc_same_owner(), which has to follow the NLM
>>byte range spec but doesn't rely on locks_remove_posix.
>>    
>>
>
>Let me try to explain this a little better. What I believe is happening
>is that on the client, thread A with tgid 0xA establishes a lock,
>and when thread B closes the file. locks_remove_posix sends an unlock request
>to the server with tgid 0xB.
>
>On the server, posix_lock_file walks the list of all existing locks,
>comparing the lock owner via nlmsvc_same_owner - and since the fl_pid
>value of the request is 0xB, this misses the established lock with
>fl_pid == 0xA.
>

I am not particularly following this logic.  It sounds reasonable, but I 
would
feel better if you had some way of reproducing and showing the problem.

    Thanx...

       ps


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2005-07-11 13:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 10:32 [PATCH fs/locks 2 of 3] Use proper tgid in locks_remove_posix Olaf Kirch
2005-07-11 12:16 ` Trond Myklebust
2005-07-11 12:48   ` Olaf Kirch
2005-07-11 13:02     ` Trond Myklebust
2005-07-11 13:16       ` Olaf Kirch
2005-07-11 13:33         ` Peter Staubach [this message]
2005-07-11 13:52         ` Trond Myklebust
2005-07-11 14:23           ` Olaf Kirch
2005-07-16 15:15 ` Olaf Hering
2005-07-17 16:42   ` Olaf Kirch

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=42D27517.5090803@redhat.com \
    --to=staubach@redhat.com \
    --cc=akpm@osdl.org \
    --cc=nfs@lists.sourceforge.net \
    --cc=okir@suse.de \
    --cc=trond.myklebust@fys.uio.no \
    /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.