linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: gchen <gang.chen@asianux.com>
To: linux-nfs@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, jlayton@redhat.com
Subject: [QUESTION] about NFS sub system between Public Kernel and Red Hat Kernel.
Date: Fri, 31 Aug 2012 13:40:16 +0800	[thread overview]
Message-ID: <50404E40.3070702@asianux.com> (raw)

Hi linux-nfs@vger.kernel.org

I have 1 question, and also 2 conclusions which need confirm.


1) Question:

Jeff Layton said in Red Hat Bugzilla (bug 848706):
"Have configuration where the same host is acting as both NFS client
and server. That's a configuration known to cause deadlocks."

Does it mean that the public Linux kernel (not Red Hat) also can cause
deadlocks if NFS client and server are under the same machine ?


2) Confirm 1: (better by Jeff Layton)

For function nfs_commit_set_lock in ./fs/nfs/write.c

for latest public kernel version:
the parameters of out_of_line_wait_on_bit_lock() are
(&nfsi->flags, NFS_INO_COMMIT, nfs_wait_killable, TASK_KILLABLE)
for Red Hat kernel version: kernel-2.6.18-308.4.1.el5
the parameters of out_of_line_wait_on_bit_lock() are
(&nfsi->flags, NFS_INO_COMMIT,
nfs_wait_bit_uninterruptible, TASK_UNINTERRUPTIBLE)

It means for red hat version:
when deadlock occurs, we can not boot machine in normal way
(it is true for my test machine, the deadlock task can not be killed)
It means for public kernel version:
"Assume deadlock occurs", we can still boot machine in normal way,
because the task can be killed.

Is what I said above correct ?


3) Confirm 2:

Is LTP (Linux Test Project) still a suitable test tools for public kernel ?
(for ltp-full-20100331.gz stress test, it mounts NFS on local machine,
and the latest LTP ltp-full-20120401.bz2 also seems the same).



thanks.

gchen

Asianux Corporation

             reply	other threads:[~2012-08-31  6:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31  5:40 gchen [this message]
2012-08-31 14:02 ` [QUESTION] about NFS sub system between Public Kernel and Red Hat Kernel Jeff Layton
2012-09-02  5:41   ` gchen

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=50404E40.3070702@asianux.com \
    --to=gang.chen@asianux.com \
    --cc=jlayton@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.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 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).