From: Dominique Martinet <dominique.martinet@cea.fr>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Eric Van Hensbergen <ericvh@gmail.com>,
Ron Minnich <rminnich@sandia.gov>,
Latchesar Ionkov <lucho@ionkov.net>,
<v9fs-developer@lists.sourceforge.net>,
<linux-fsdevel@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] fs/9p: Initialize status in v9fs_file_do_lock.
Date: Fri, 9 Jan 2015 14:29:53 +0100 [thread overview]
Message-ID: <20150109132953.GA10543@u-isr-ctg-01> (raw)
In-Reply-To: <20150109132051.GB24928@node.dhcp.inet.fi>
Kirill A. Shutemov wrote on Fri, Jan 09, 2015 at 03:20:51PM +0200:
> > Your patch will not BUG() if status is junk, BUT if status uninitialized
> > value is 0 and p9_client_lock_dotl then we'll return res=0 (success) and
> > not unlock before returning. My patch makes sure we'll return -ENOLCK.
>
> No, if p9_client_lock_dotl() return 0 it must set status. If it's not,
> that's bug on p9_client_lock_dotl() side and must be fixed.
I had that bit right, but I only remembered your second patch -- sorry.
It should be fine with your patchES, please disregard this one.
--
Dominique Martinet,
CEA
prev parent reply other threads:[~2015-01-09 13:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 11:56 [PATCH] fs/9p: Initialize status in v9fs_file_do_lock Dominique Martinet
2015-01-09 12:33 ` Kirill A. Shutemov
2015-01-09 13:07 ` Dominique Martinet
2015-01-09 13:20 ` Kirill A. Shutemov
2015-01-09 13:29 ` Dominique Martinet [this message]
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=20150109132953.GA10543@u-isr-ctg-01 \
--to=dominique.martinet@cea.fr \
--cc=ericvh@gmail.com \
--cc=kirill@shutemov.name \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucho@ionkov.net \
--cc=rminnich@sandia.gov \
--cc=v9fs-developer@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).