From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 09:11:59
This patch set was created in context of clone of git
branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git.
tag: v3.1
This patch set depends on previous patch sets titled:
1) "SUNRPC: initial part of making pipefs work in net ns"
2) "SUNPRC: cleanup PipeFS for network-namespace-aware users"
3) "SUNRPC: make RPC clients use network-namespace-aware PipeFS routines"
4) "NFS: create clients and IDMAP pipes per network namespace"
This patch set is the final part of making SUNRPC PipeFS and it's users work in
network namespace context.
The following series consists of:
---
Stanislav Kinsbursky (5):
NFS: handle blocklayout pipe PipeFS dentry by network namespace aware routines
NFS: blocklayout pipe creation per network namespace context introduced
NFS: blocklayout PipeFS notifier introduced
NFS: remove RPC PipeFS mount point reference from blocklayout routines
SUNRPC: kernel PipeFS mount point creation routines removed
fs/nfs/blocklayout/blocklayout.c | 154 ++++++++++++++++++++++++++++-------
fs/nfs/blocklayout/blocklayout.h | 3 -
fs/nfs/blocklayout/blocklayoutdev.c | 5 +
fs/nfs/blocklayout/blocklayoutdm.c | 7 +-
fs/nfs/inode.c | 1
fs/nfs/netns.h | 1
include/linux/sunrpc/rpc_pipe_fs.h | 2
net/sunrpc/rpc_pipe.c | 21 -----
8 files changed, 137 insertions(+), 57 deletions(-)
From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 09:12:10
This patch implements blocklayout pipe creation and registration per each
existent network namespace.
This was achived by registering NFS per-net operations, responsible for
blocklayout pipe allocation/register and unregister/destruction instead of
initialization and destruction of static "bl_device_pipe" pipe (this one was
removed).
Note, than pointer to network blocklayout pipe is stored in per-net "nfs_net"
structure, because allocating of one more per-net structure for blocklayout
module looks redundant.
This patch also changes dev_remove() function prototype (and all it's callers,
where it' requied) by adding network namespace pointer parameter, which is used
to discover proper blocklayout pipe for rpc_queue_upcall() call.
Signed-off-by: Stanislav Kinsbursky <redacted>
---
fs/nfs/blocklayout/blocklayout.c | 49 ++++++++++++++++++++++++-----------
fs/nfs/blocklayout/blocklayout.h | 3 +-
fs/nfs/blocklayout/blocklayoutdev.c | 5 +++-
fs/nfs/blocklayout/blocklayoutdm.c | 7 +++--
fs/nfs/inode.c | 1 +
fs/nfs/netns.h | 1 +
6 files changed, 46 insertions(+), 20 deletions(-)
From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 09:12:23
This patch subscribes blocklayout pipes to RPC pipefs notifications. Notifier
is registering on blocklayout module load. This notifier callback is
responsible for creation/destruction of PipeFS blocklayout pipe dentry.
Note that no locking required in notifier callback because PipeFS superblock
pointer is passed as an argument from it's creation or destruction routine and
thus we can be sure about it's validity.
Signed-off-by: Stanislav Kinsbursky <redacted>
---
fs/nfs/blocklayout/blocklayout.c | 48 +++++++++++++++++++++++++++++++++++++-
1 files changed, 47 insertions(+), 1 deletions(-)
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 09:12:28
This is a cleanup patch. We don't need this reference anymore, because
blocklayout pipes dentries now creates and destroys in per-net operations and
on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of -ENOENT in
case of PipeFS superblock absence. This is ok, because blocklayout pipe dentry
will be created on PipeFS mount event.
Signed-off-by: Stanislav Kinsbursky <redacted>
---
fs/nfs/blocklayout/blocklayout.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 09:12:40
This patch removes static rpc_mnt variable and its creation and destruction
routines, because they are not used anymore.
Signed-off-by: Stanislav Kinsbursky <redacted>
---
include/linux/sunrpc/rpc_pipe_fs.h | 2 --
net/sunrpc/rpc_pipe.c | 21 ---------------------
2 files changed, 0 insertions(+), 23 deletions(-)
From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 09:19:23
Hello, Trond.
This is the final part of SUNRPC PipeFS virtualization.
I hope, that you'll find some time to review all series.
You can clone my working tree to have a look at what will be at the end:
git://github.com/skinsbursky/nfs-per-net-ns.git
BTW, I can provide a simple "sandbox" (a kind of container with it's own network
namespace and veth device inside) which I use to test my changes.
--
Best regards,
Stanislav Kinsbursky
-----Original Message-----
From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of Stanislav
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org; xemul@parallels.com; neilb@suse.de; netdev@vger.kernel.org; linux-
kernel@vger.kernel.org; jbottomley@parallels.com; bfields@fieldses.org; davem@davemloft.net;
devel@openvz.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference from blocklayout routines
This is a cleanup patch. We don't need this reference anymore, because
blocklayout pipes dentries now creates and destroys in per-net operations and
on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of -ENOENT in
case of PipeFS superblock absence. This is ok, because blocklayout pipe dentry
will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting kernel modules or when user issues mount command?
Thanks,
Tao
@@ -1093,12 +1092,6 @@ static int __init nfs4blocklayout_init(void)gotoout;init_waitqueue_head(&bl_wq);--mnt=rpc_get_mount();-if(IS_ERR(mnt)){-ret=PTR_ERR(mnt);-gotoout_remove;-}ret=rpc_pipefs_notifier_register(&nfs4blocklayout_block);if(ret)gotoout_remove;--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 12:21:18
29.11.2011 16:00, tao.peng@emc.com пишет:
quoted
-----Original Message-----
From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of Stanislav
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org; xemul@parallels.com; neilb@suse.de; netdev@vger.kernel.org; linux-
kernel@vger.kernel.org; jbottomley@parallels.com; bfields@fieldses.org; davem@davemloft.net;
devel@openvz.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference from blocklayout routines
This is a cleanup patch. We don't need this reference anymore, because
blocklayout pipes dentries now creates and destroys in per-net operations and
on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of -ENOENT in
case of PipeFS superblock absence. This is ok, because blocklayout pipe dentry
will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting kernel modules or when user issues mount command?
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets I've sent
already.
@@ -1093,12 +1092,6 @@ static int __init nfs4blocklayout_init(void)gotoout;init_waitqueue_head(&bl_wq);--mnt=rpc_get_mount();-if(IS_ERR(mnt)){-ret=PTR_ERR(mnt);-gotoout_remove;-}ret=rpc_pipefs_notifier_register(&nfs4blocklayout_block);if(ret)gotoout_remove;--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBTdGFuaXNsYXYgS2luc2J1cnNreSBbbWFpbHRvOnNraW5zYnVyc2t5QHBhcmFsbGVscy5jb21dDQo+IFNlbnQ6IFR1ZXNkYXksIE5vdmVtYmVyIDI5LCAyMDExIDg6MTkgUE0NCj4gVG86IFBlbmcsIFRhbw0KPiBDYzogVHJvbmQuTXlrbGVidXN0QG5ldGFwcC5jb207IGxpbnV4LW5mc0B2Z2VyLmtlcm5lbC5vcmc7IFBhdmVsIEVtZWxpYW5vdjsgbmVpbGJAc3VzZS5kZTsNCj4gbmV0ZGV2QHZnZXIua2VybmVsLm9yZzsgbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsgSmFtZXMgQm90dG9tbGV5OyBiZmllbGRzQGZpZWxkc2VzLm9y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VNfRVJSKG1udCkpIHsNCj4gPj4gLQkJcmV0ID0gUFRSX0VSUihtbnQpOw0KPiA+PiAtCQlnb3RvIG91dF9yZW1vdmU7DQo+ID4+IC0JfQ0KPiA+PiAgIAlyZXQgPSBycGNfcGlwZWZzX25vdGlmaWVyX3JlZ2lzdGVyKCZuZnM0YmxvY2tsYXlvdXRfYmxvY2spOw0KPiA+PiAgIAlpZiAocmV0KQ0KPiA+PiAgIAkJZ290byBvdXRfcmVtb3ZlOw0KPiA+Pg0KPiA+PiAtLQ0KPiA+PiBUbyB1bnN1YnNjcmliZSBmcm9tIHRoaXMgbGlzdDogc2VuZCB0aGUgbGluZSAidW5zdWJzY3JpYmUgbGludXgtbmZzIiBpbg0KPiA+PiB0aGUgYm9keSBvZiBhIG1lc3NhZ2UgdG8gbWFqb3Jkb21vQHZnZXIua2VybmVsLm9yZw0KPiA+PiBNb3JlIG1ham9yZG9tbyBpbmZvIGF0ICBodHRwOi8vdmdlci5rZXJuZWwub3JnL21ham9yZG9tby1pbmZvLmh0bWwNCj4gPg0KPiANCj4gDQo+IC0tDQo+IEJlc3QgcmVnYXJkcywNCj4gU3RhbmlzbGF2IEtpbnNidXJza3kNCg0K--To unsubscribe from this list: send the line "unsubscribe linux-nfs" inthe body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.orgMore majordomo info at http://vger.kernel.org/majordomo-info.html
From: Stanislav Kinsbursky <hidden> Date: 2011-11-29 13:15:28
29.11.2011 16:40, tao.peng@emc.com пишет:
quoted
-----Original Message-----
From: Stanislav Kinsbursky [mailto:skinsbursky@parallels.com]
Sent: Tuesday, November 29, 2011 8:19 PM
To: Peng, Tao
Cc: Trond.Myklebust@netapp.com; linux-nfs@vger.kernel.org; Pavel Emelianov; neilb@suse.de;
netdev@vger.kernel.org; linux-kernel@vger.kernel.org; James Bottomley; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: Re: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference from blocklayout routines
29.11.2011 16:00, tao.peng@emc.com пишет:
quoted
quoted
-----Original Message-----
From: linux-nfs-owner@vger.kernel.org [mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of
Stanislav
quoted
quoted
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org; xemul@parallels.com; neilb@suse.de; netdev@vger.kernel.org; linux-
kernel@vger.kernel.org; jbottomley@parallels.com; bfields@fieldses.org; davem@davemloft.net;
devel@openvz.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference from blocklayout routines
This is a cleanup patch. We don't need this reference anymore, because
blocklayout pipes dentries now creates and destroys in per-net operations and
on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of -ENOENT in
case of PipeFS superblock absence. This is ok, because blocklayout pipe dentry
will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting kernel modules or when user issues
mount command?
quoted
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets I've sent
already.
Then it is going to break blocklayout user space program blkmapd, which is stared before mounting any file system and it tries to open the pipe file when started.
Sorry, but I don't get it. Probably we have misunderstanding here.
You said, that "blkmapd ... tries to open the pipe file when started". This pipe
file is located on PipeFS, isn't it?
If yes, then PipeFS have to be mounted already in user-space. And if it has been
mounted - then pipe dentry is present.
IOW, pipe (without dentry) will be created on module load. Pipe dentry will be
created right after that (like it was before) if PipeFS was mounted from
user-space. If not - then pipe dentry will be created on PipeFS (!) mount (not
NFS or pNFS mount) from user-space.
Or I'm missing something in your reply?
Not sure if you implement the same logic on nfs pipe as well. But if you do, then nfs client user space program idmapd will fail to start for the same reason.
The same logic here.
Why not just fail to load module if you fail to initialize pipefs? When is rpc_get_sb_net() going to fail?
Sorry, but I don't understand, what is your idea. And why do we need to fail at all.
BTW, rpc_get_sb_net() just checks, was PipeFS mounted in passed net, or not. If
not - not a problem. Dentries will be created on mount event. If yes, then it
returns locked PipeFS sb and the next step is dentry creation.
@@ -1093,12 +1092,6 @@ static int __init nfs4blocklayout_init(void)gotoout;init_waitqueue_head(&bl_wq);--mnt=rpc_get_mount();-if(IS_ERR(mnt)){-ret=PTR_ERR(mnt);-gotoout_remove;-}ret=rpc_pipefs_notifier_register(&nfs4blocklayout_block);if(ret)gotoout_remove;--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
-----Original Message-----
From: tao.peng@emc.com [mailto:tao.peng@emc.com]
Sent: Tuesday, November 29, 2011 7:40 AM
To: skinsbursky@parallels.com
Cc: Myklebust, Trond; linux-nfs@vger.kernel.org; xemul@parallels.com;
neilb@suse.de; netdev@vger.kernel.org; linux-kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org; davem@davemloft.net;
devel@openvz.org
Subject: RE: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
quoted
-----Original Message-----
From: Stanislav Kinsbursky [mailto:skinsbursky@parallels.com]
Sent: Tuesday, November 29, 2011 8:19 PM
To: Peng, Tao
Cc: Trond.Myklebust@netapp.com; linux-nfs@vger.kernel.org; Pavel
Emelianov; neilb@suse.de; netdev@vger.kernel.org;
linux-kernel@vger.kernel.org; James Bottomley; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: Re: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
29.11.2011 16:00, tao.peng@emc.com пишет:
quoted
quoted
-----Original Message-----
From: linux-nfs-owner@vger.kernel.org
[mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of
Stanislav
quoted
quoted
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org; xemul@parallels.com; neilb@suse.de;
netdev@vger.kernel.org; linux- kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
This is a cleanup patch. We don't need this reference anymore,
because blocklayout pipes dentries now creates and destroys in
per-net operations and on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of
-ENOENT in case of PipeFS superblock absence. This is ok, because
blocklayout pipe dentry will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting
kernel modules or when user issues
mount command?
quoted
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets
I've sent already.
Then it is going to break blocklayout user space program blkmapd, which is
stared before mounting any file system and it tries to open the pipe file
when started.
Why on earth is blkmapd doing this instead of listening for file creation notifications like the other rpc_pipefs daemons do?
Trond
-----Original Message-----
From: Stanislav Kinsbursky [mailto:skinsbursky-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org]
Sent: Tuesday, November 29, 2011 8:19 PM
To: Peng, Tao
Cc: Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org; linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Pavel
Emelianov; neilb-l3A5Bk7waGM@public.gmane.org;
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; James Bottomley;
bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org;
davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org; devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
29.11.2011 16:00, tao.peng-mb1K0bWo544@public.gmane.org пишет:
quoted
quoted
-----Original Message-----
From: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
[mailto:linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of
Stanislav
quoted
quoted
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org
Cc: linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org; neilb-l3A5Bk7waGM@public.gmane.org;
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-
kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; jbottomley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org; bfields@fieldses.org;
davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org;
devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference from
blocklayout routines
This is a cleanup patch. We don't need this reference anymore, because
blocklayout pipes dentries now creates and destroys in per-net
operations and
on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of
-ENOENT in
case of PipeFS superblock absence. This is ok, because blocklayout pipe
dentry
will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting kernel
modules or when user issues
mount command?
quoted
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets I've
sent
already.
Then it is going to break blocklayout user space program blkmapd, which is
stared before mounting any file system and it tries to open the pipe file
when started.
Sorry, but I don't get it. Probably we have misunderstanding here.
You said, that "blkmapd ... tries to open the pipe file when started". This
pipe file is located on PipeFS, isn't it?
If yes, then PipeFS have to be mounted already in user-space. And if it has
been mounted - then pipe dentry is present.
IOW, pipe (without dentry) will be created on module load. Pipe dentry will
be created right after that (like it was before) if PipeFS was mounted from
user-space. If not - then pipe dentry will be created on PipeFS (!) mount
(not NFS or pNFS mount) from user-space.
Sorry, I misunderstood. I was thinking about mounting NFS or pNFS when
you say "when user issues mount command". Thanks for the explanation.
Regards,
Tao
Or I'm missing something in your reply?
quoted
Not sure if you implement the same logic on nfs pipe as well. But if you
do, then nfs client user space program idmapd will fail to start for the
same reason.
The same logic here.
quoted
Why not just fail to load module if you fail to initialize pipefs? When is
rpc_get_sb_net() going to fail?
Sorry, but I don't understand, what is your idea. And why do we need to fail
at all.
BTW, rpc_get_sb_net() just checks, was PipeFS mounted in passed net, or not.
If not - not a problem. Dentries will be created on mount event. If yes,
then it returns locked PipeFS sb and the next step is dentry creation.
@@ -1093,12 +1092,6 @@ static int __init nfs4blocklayout_init(void)
goto out;
init_waitqueue_head(&bl_wq);
-
- mnt = rpc_get_mount();
- if (IS_ERR(mnt)) {
- ret = PTR_ERR(mnt);
- goto out_remove;
- }
ret = rpc_pipefs_notifier_register(&nfs4blocklayout_block);
if (ret)
goto out_remove;
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best regards,
Stanislav Kinsbursky
--
Best regards,
Stanislav Kinsbursky
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Nov 29, 2011 at 9:35 PM, Myklebust, Trond
[off-list ref] wrote:
quoted
-----Original Message-----
From: tao.peng-mb1K0bWo544@public.gmane.org [mailto:tao.peng-mb1K0bWo544@public.gmane.org]
Sent: Tuesday, November 29, 2011 7:40 AM
To: skinsbursky-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org
Cc: Myklebust, Trond; linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org;
neilb-l3A5Bk7waGM@public.gmane.org; netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org;
jbottomley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org; bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org; davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org;
devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
Subject: RE: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
quoted
-----Original Message-----
From: Stanislav Kinsbursky [mailto:skinsbursky-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org]
Sent: Tuesday, November 29, 2011 8:19 PM
To: Peng, Tao
Cc: Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org; linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Pavel
Emelianov; neilb-l3A5Bk7waGM@public.gmane.org; netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org;
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; James Bottomley; bfields-uC3wQj2KruMpug/h7KTFAQ@public.gmane.orgg;
davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org; devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
29.11.2011 16:00, tao.peng-mb1K0bWo544@public.gmane.org пишет:
quoted
quoted
-----Original Message-----
From: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
[mailto:linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of
Stanislav
quoted
quoted
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org
Cc: linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org; neilb@suse.de;
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux- kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org;
jbottomley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org; bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org;
davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org; devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
This is a cleanup patch. We don't need this reference anymore,
because blocklayout pipes dentries now creates and destroys in
per-net operations and on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of
-ENOENT in case of PipeFS superblock absence. This is ok, because
blocklayout pipe dentry will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting
kernel modules or when user issues
mount command?
quoted
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets
I've sent already.
Then it is going to break blocklayout user space program blkmapd, which is
stared before mounting any file system and it tries to open the pipe file
when started.
Why on earth is blkmapd doing this instead of listening for file creation notifications like the other rpc_pipefs daemons do?
Not sure how the original implementer chose this but I think it is
likely because we do not expect the pipe file to be created or deleted
dynamically.
--
Thanks,
Tao
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, 2011-11-29 at 23:10 +0800, Peng Tao wrote:
On Tue, Nov 29, 2011 at 9:35 PM, Myklebust, Trond
[off-list ref] wrote:
quoted
quoted
-----Original Message-----
From: tao.peng@emc.com [mailto:tao.peng@emc.com]
Sent: Tuesday, November 29, 2011 7:40 AM
To: skinsbursky@parallels.com
Cc: Myklebust, Trond; linux-nfs@vger.kernel.org; xemul@parallels.com;
neilb@suse.de; netdev@vger.kernel.org; linux-kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org; davem@davemloft.net;
devel@openvz.org
Subject: RE: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
quoted
-----Original Message-----
From: Stanislav Kinsbursky [mailto:skinsbursky@parallels.com]
Sent: Tuesday, November 29, 2011 8:19 PM
To: Peng, Tao
Cc: Trond.Myklebust@netapp.com; linux-nfs@vger.kernel.org; Pavel
Emelianov; neilb@suse.de; netdev@vger.kernel.org;
linux-kernel@vger.kernel.org; James Bottomley; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: Re: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
29.11.2011 16:00, tao.peng@emc.com пишет:
quoted
quoted
-----Original Message-----
From: linux-nfs-owner@vger.kernel.org
[mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of
Stanislav
quoted
quoted
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org; xemul@parallels.com; neilb@suse.de;
netdev@vger.kernel.org; linux- kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
This is a cleanup patch. We don't need this reference anymore,
because blocklayout pipes dentries now creates and destroys in
per-net operations and on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of
-ENOENT in case of PipeFS superblock absence. This is ok, because
blocklayout pipe dentry will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting
kernel modules or when user issues
mount command?
quoted
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets
I've sent already.
Then it is going to break blocklayout user space program blkmapd, which is
stared before mounting any file system and it tries to open the pipe file
when started.
Why on earth is blkmapd doing this instead of listening for file creation notifications like the other rpc_pipefs daemons do?
Not sure how the original implementer chose this but I think it is
likely because we do not expect the pipe file to be created or deleted
dynamically.
Unless blkmapd can pin the sunrpc module (which it shouldn't be able to)
then that assumption would be wrong. Please look into fixing blkmapd...
Trond
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
On Tue, Nov 29, 2011 at 11:18 PM, Trond Myklebust
[off-list ref] wrote:
On Tue, 2011-11-29 at 23:10 +0800, Peng Tao wrote:
quoted
On Tue, Nov 29, 2011 at 9:35 PM, Myklebust, Trond
[off-list ref] wrote:
quoted
quoted
-----Original Message-----
From: tao.peng@emc.com [mailto:tao.peng@emc.com]
Sent: Tuesday, November 29, 2011 7:40 AM
To: skinsbursky@parallels.com
Cc: Myklebust, Trond; linux-nfs@vger.kernel.org; xemul@parallels.com;
neilb@suse.de; netdev@vger.kernel.org; linux-kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org; davem@davemloft.net;
devel@openvz.org
Subject: RE: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
quoted
-----Original Message-----
From: Stanislav Kinsbursky [mailto:skinsbursky@parallels.com]
Sent: Tuesday, November 29, 2011 8:19 PM
To: Peng, Tao
Cc: Trond.Myklebust@netapp.com; linux-nfs@vger.kernel.org; Pavel
Emelianov; neilb@suse.de; netdev@vger.kernel.org;
linux-kernel@vger.kernel.org; James Bottomley; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: Re: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
29.11.2011 16:00, tao.peng@emc.com пишет:
quoted
quoted
-----Original Message-----
From: linux-nfs-owner@vger.kernel.org
[mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of
Stanislav
quoted
quoted
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org; xemul@parallels.com; neilb@suse.de;
netdev@vger.kernel.org; linux- kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
This is a cleanup patch. We don't need this reference anymore,
because blocklayout pipes dentries now creates and destroys in
per-net operations and on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of
-ENOENT in case of PipeFS superblock absence. This is ok, because
blocklayout pipe dentry will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting
kernel modules or when user issues
mount command?
quoted
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets
I've sent already.
Then it is going to break blocklayout user space program blkmapd, which is
stared before mounting any file system and it tries to open the pipe file
when started.
Why on earth is blkmapd doing this instead of listening for file creation notifications like the other rpc_pipefs daemons do?
Not sure how the original implementer chose this but I think it is
likely because we do not expect the pipe file to be created or deleted
dynamically.
Unless blkmapd can pin the sunrpc module (which it shouldn't be able to)
then that assumption would be wrong. Please look into fixing blkmapd...
Sorry, I don't quite get it. Do you mean sunrpc module may be removed
while nfs/blocklayout modules are still in use? Please explain it a
bit. Thanks.
Best,
Tao
On Tue, 2011-11-29 at 23:30 +0800, Peng Tao wrote:
On Tue, Nov 29, 2011 at 11:18 PM, Trond Myklebust
[off-list ref] wrote:
quoted
On Tue, 2011-11-29 at 23:10 +0800, Peng Tao wrote:
quoted
On Tue, Nov 29, 2011 at 9:35 PM, Myklebust, Trond
[off-list ref] wrote:
quoted
quoted
-----Original Message-----
From: tao.peng@emc.com [mailto:tao.peng@emc.com]
Sent: Tuesday, November 29, 2011 7:40 AM
To: skinsbursky@parallels.com
Cc: Myklebust, Trond; linux-nfs@vger.kernel.org; xemul@parallels.com;
neilb@suse.de; netdev@vger.kernel.org; linux-kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org; davem@davemloft.net;
devel@openvz.org
Subject: RE: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
quoted
-----Original Message-----
From: Stanislav Kinsbursky [mailto:skinsbursky@parallels.com]
Sent: Tuesday, November 29, 2011 8:19 PM
To: Peng, Tao
Cc: Trond.Myklebust@netapp.com; linux-nfs@vger.kernel.org; Pavel
Emelianov; neilb@suse.de; netdev@vger.kernel.org;
linux-kernel@vger.kernel.org; James Bottomley; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: Re: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
29.11.2011 16:00, tao.peng@emc.com пишет:
quoted
quoted
-----Original Message-----
From: linux-nfs-owner@vger.kernel.org
[mailto:linux-nfs-owner@vger.kernel.org] On Behalf Of
Stanislav
quoted
quoted
Kinsbursky
Sent: Tuesday, November 29, 2011 6:11 PM
To: Trond.Myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org; xemul@parallels.com; neilb@suse.de;
netdev@vger.kernel.org; linux- kernel@vger.kernel.org;
jbottomley@parallels.com; bfields@fieldses.org;
davem@davemloft.net; devel@openvz.org
Subject: [PATCH 4/5] NFS: remove RPC PipeFS mount point reference
from blocklayout routines
This is a cleanup patch. We don't need this reference anymore,
because blocklayout pipes dentries now creates and destroys in
per-net operations and on PipeFS mount/umount notification.
Note that nfs4blocklayout_register_net() now returns 0 instead of
-ENOENT in case of PipeFS superblock absence. This is ok, because
blocklayout pipe dentry will be created on PipeFS mount event.
When is the "pipefs mount event" going to happen? When inserting
kernel modules or when user issues
mount command?
quoted
When user issues mount command.
Kernel mounts of PipeFS has been removed with all these patch sets
I've sent already.
Then it is going to break blocklayout user space program blkmapd, which is
stared before mounting any file system and it tries to open the pipe file
when started.
Why on earth is blkmapd doing this instead of listening for file creation notifications like the other rpc_pipefs daemons do?
Not sure how the original implementer chose this but I think it is
likely because we do not expect the pipe file to be created or deleted
dynamically.
Unless blkmapd can pin the sunrpc module (which it shouldn't be able to)
then that assumption would be wrong. Please look into fixing blkmapd...
Sorry, I don't quite get it. Do you mean sunrpc module may be removed
while nfs/blocklayout modules are still in use? Please explain it a
bit. Thanks.
I mean that I'm perfectly entitled to do
'modprobe -r blocklayoutdriver'
and when I do that, then I expect blkmapd to close the rpc pipe and wait
for a new one to be created just like rpc.idmapd and rpc.gssd do when I
remove the nfs and sunrpc modules.
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
From: J. Bruce Fields <hidden> Date: 2011-11-29 16:42:59
On Tue, Nov 29, 2011 at 11:40:30AM -0500, Trond Myklebust wrote:
I mean that I'm perfectly entitled to do
'modprobe -r blocklayoutdriver'
and when I do that, then I expect blkmapd to close the rpc pipe and wait
for a new one to be created just like rpc.idmapd and rpc.gssd do when I
remove the nfs and sunrpc modules.
The rpc pipefs mount doesn't hold a reference on the sunrpc module?
--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, 2011-11-29 at 11:42 -0500, J. Bruce Fields wrote:
On Tue, Nov 29, 2011 at 11:40:30AM -0500, Trond Myklebust wrote:
quoted
I mean that I'm perfectly entitled to do
'modprobe -r blocklayoutdriver'
and when I do that, then I expect blkmapd to close the rpc pipe and wait
for a new one to be created just like rpc.idmapd and rpc.gssd do when I
remove the nfs and sunrpc modules.
The rpc pipefs mount doesn't hold a reference on the sunrpc module?
I stand corrected: the mount does hold a reference to the sunrpc
module.
However nothing holds a reference to the blocklayoutdriver module, so
the main point that the "blocklayout" pipe can disappear from underneath
the blkmapd stands.
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: J. Bruce Fields <hidden> Date: 2011-11-29 17:27:07
On Tue, Nov 29, 2011 at 12:19:25PM -0500, Trond Myklebust wrote:
On Tue, 2011-11-29 at 11:42 -0500, J. Bruce Fields wrote:
quoted
On Tue, Nov 29, 2011 at 11:40:30AM -0500, Trond Myklebust wrote:
quoted
I mean that I'm perfectly entitled to do
'modprobe -r blocklayoutdriver'
and when I do that, then I expect blkmapd to close the rpc pipe and wait
for a new one to be created just like rpc.idmapd and rpc.gssd do when I
remove the nfs and sunrpc modules.
The rpc pipefs mount doesn't hold a reference on the sunrpc module?
I stand corrected: the mount does hold a reference to the sunrpc
module.
However nothing holds a reference to the blocklayoutdriver module, so
the main point that the "blocklayout" pipe can disappear from underneath
the blkmapd stands.
OK, that makes sense.
--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Nov 30, 2011 at 1:19 AM, Trond Myklebust
[off-list ref] wrote:
On Tue, 2011-11-29 at 11:42 -0500, J. Bruce Fields wrote:
quoted
On Tue, Nov 29, 2011 at 11:40:30AM -0500, Trond Myklebust wrote:
quoted
I mean that I'm perfectly entitled to do
'modprobe -r blocklayoutdriver'
and when I do that, then I expect blkmapd to close the rpc pipe and wait
for a new one to be created just like rpc.idmapd and rpc.gssd do when I
remove the nfs and sunrpc modules.
The rpc pipefs mount doesn't hold a reference on the sunrpc module?
I stand corrected: the mount does hold a reference to the sunrpc
module.
However nothing holds a reference to the blocklayoutdriver module, so
the main point that the "blocklayout" pipe can disappear from underneath
the blkmapd stands.
Thanks for the explanation and I agree it can cause problem if user
reload blocklayout module. I will look into a fix to blkmapd.
Best,
Tao
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, 2011-11-29 at 13:10 +0300, Stanislav Kinsbursky wrote:
This patch set was created in context of clone of git
branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git.
tag: v3.1
This patch set depends on previous patch sets titled:
1) "SUNRPC: initial part of making pipefs work in net ns"
2) "SUNPRC: cleanup PipeFS for network-namespace-aware users"
3) "SUNRPC: make RPC clients use network-namespace-aware PipeFS routines"
4) "NFS: create clients and IDMAP pipes per network namespace"
This patch set is the final part of making SUNRPC PipeFS and it's users work in
network namespace context.
The following series consists of:
---
Stanislav Kinsbursky (5):
NFS: handle blocklayout pipe PipeFS dentry by network namespace aware routines
NFS: blocklayout pipe creation per network namespace context introduced
NFS: blocklayout PipeFS notifier introduced
NFS: remove RPC PipeFS mount point reference from blocklayout routines
SUNRPC: kernel PipeFS mount point creation routines removed
fs/nfs/blocklayout/blocklayout.c | 154 ++++++++++++++++++++++++++++-------
fs/nfs/blocklayout/blocklayout.h | 3 -
fs/nfs/blocklayout/blocklayoutdev.c | 5 +
fs/nfs/blocklayout/blocklayoutdm.c | 7 +-
fs/nfs/inode.c | 1
fs/nfs/netns.h | 1
include/linux/sunrpc/rpc_pipe_fs.h | 2
net/sunrpc/rpc_pipe.c | 21 -----
8 files changed, 137 insertions(+), 57 deletions(-)
These patches need rebasing in order to apply on top of 3.2-rc7...
Cheers
Trond
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, 2011-12-30 at 17:55 -0500, Trond Myklebust wrote:
On Tue, 2011-11-29 at 13:10 +0300, Stanislav Kinsbursky wrote:
quoted
This patch set was created in context of clone of git
branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git.
tag: v3.1
This patch set depends on previous patch sets titled:
1) "SUNRPC: initial part of making pipefs work in net ns"
2) "SUNPRC: cleanup PipeFS for network-namespace-aware users"
3) "SUNRPC: make RPC clients use network-namespace-aware PipeFS routines"
4) "NFS: create clients and IDMAP pipes per network namespace"
This patch set is the final part of making SUNRPC PipeFS and it's users work in
network namespace context.
The following series consists of:
---
Stanislav Kinsbursky (5):
NFS: handle blocklayout pipe PipeFS dentry by network namespace aware routines
NFS: blocklayout pipe creation per network namespace context introduced
NFS: blocklayout PipeFS notifier introduced
NFS: remove RPC PipeFS mount point reference from blocklayout routines
SUNRPC: kernel PipeFS mount point creation routines removed
fs/nfs/blocklayout/blocklayout.c | 154 ++++++++++++++++++++++++++++-------
fs/nfs/blocklayout/blocklayout.h | 3 -
fs/nfs/blocklayout/blocklayoutdev.c | 5 +
fs/nfs/blocklayout/blocklayoutdm.c | 7 +-
fs/nfs/inode.c | 1
fs/nfs/netns.h | 1
include/linux/sunrpc/rpc_pipe_fs.h | 2
net/sunrpc/rpc_pipe.c | 21 -----
8 files changed, 137 insertions(+), 57 deletions(-)
These patches need rebasing in order to apply on top of 3.2-rc7...
OK. Further testing seems to indicate that we're going to have to
postpone merging these patches until the 3.4 merge window.
The problems are twofold:
As the patches stand now in the linux-next tree, they can (and
occasionally do) Oops on unmount. The reason was that I rejected the
PipeFS notifier patch for the idmapper (due to the reported problem of
nfs_idmap_init/nfs_idmap_quit being undefined when CONFIG_NFS_V4 is
undefined), and the fact that it is missing causes the unmount at the
end of our tests to hit the BUG() in fs/dcache.c:905. This suggests that
we will have the same problem with the pNFS block layout driver, since I
still haven't received a rebased update of the 5 'create blocklayout
pipe per network namesapce context' patches.
The second problem that was highlighted was the fact that as they stand
today, these patchsets do not allow for bisection. When we hit the Oops,
I had Bryan try to bisect where the problem arose. He ended up pointing
at the patch "SUNRPC: handle RPC client pipefs dentries by network
namespace aware routine", which is indeed the cause, but which is one of
the _dependencies_ for all the PipeFS notifier patches that fix the
problem.
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
From: Stanislav Kinsbursky <hidden> Date: 2012-01-10 10:50:18
31.12.2011 02:55, Trond Myklebust пишет:
On Tue, 2011-11-29 at 13:10 +0300, Stanislav Kinsbursky wrote:
quoted
This patch set was created in context of clone of git
branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git.
tag: v3.1
This patch set depends on previous patch sets titled:
1) "SUNRPC: initial part of making pipefs work in net ns"
2) "SUNPRC: cleanup PipeFS for network-namespace-aware users"
3) "SUNRPC: make RPC clients use network-namespace-aware PipeFS routines"
4) "NFS: create clients and IDMAP pipes per network namespace"
This patch set is the final part of making SUNRPC PipeFS and it's users work in
network namespace context.
The following series consists of:
---
Stanislav Kinsbursky (5):
NFS: handle blocklayout pipe PipeFS dentry by network namespace aware routines
NFS: blocklayout pipe creation per network namespace context introduced
NFS: blocklayout PipeFS notifier introduced
NFS: remove RPC PipeFS mount point reference from blocklayout routines
SUNRPC: kernel PipeFS mount point creation routines removed
fs/nfs/blocklayout/blocklayout.c | 154 ++++++++++++++++++++++++++++-------
fs/nfs/blocklayout/blocklayout.h | 3 -
fs/nfs/blocklayout/blocklayoutdev.c | 5 +
fs/nfs/blocklayout/blocklayoutdm.c | 7 +-
fs/nfs/inode.c | 1
fs/nfs/netns.h | 1
include/linux/sunrpc/rpc_pipe_fs.h | 2
net/sunrpc/rpc_pipe.c | 21 -----
8 files changed, 137 insertions(+), 57 deletions(-)
These patches need rebasing in order to apply on top of 3.2-rc7...
Will resend rebased version soon.
--
Best regards,
Stanislav Kinsbursky
From: Stanislav Kinsbursky <hidden> Date: 2012-01-10 12:58:33
06.01.2012 00:58, Trond Myklebust пишет:
On Fri, 2011-12-30 at 17:55 -0500, Trond Myklebust wrote:
quoted
On Tue, 2011-11-29 at 13:10 +0300, Stanislav Kinsbursky wrote:
quoted
This patch set was created in context of clone of git
branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git.
tag: v3.1
This patch set depends on previous patch sets titled:
1) "SUNRPC: initial part of making pipefs work in net ns"
2) "SUNPRC: cleanup PipeFS for network-namespace-aware users"
3) "SUNRPC: make RPC clients use network-namespace-aware PipeFS routines"
4) "NFS: create clients and IDMAP pipes per network namespace"
This patch set is the final part of making SUNRPC PipeFS and it's users work in
network namespace context.
The following series consists of:
---
Stanislav Kinsbursky (5):
NFS: handle blocklayout pipe PipeFS dentry by network namespace aware routines
NFS: blocklayout pipe creation per network namespace context introduced
NFS: blocklayout PipeFS notifier introduced
NFS: remove RPC PipeFS mount point reference from blocklayout routines
SUNRPC: kernel PipeFS mount point creation routines removed
fs/nfs/blocklayout/blocklayout.c | 154 ++++++++++++++++++++++++++++-------
fs/nfs/blocklayout/blocklayout.h | 3 -
fs/nfs/blocklayout/blocklayoutdev.c | 5 +
fs/nfs/blocklayout/blocklayoutdm.c | 7 +-
fs/nfs/inode.c | 1
fs/nfs/netns.h | 1
include/linux/sunrpc/rpc_pipe_fs.h | 2
net/sunrpc/rpc_pipe.c | 21 -----
8 files changed, 137 insertions(+), 57 deletions(-)
These patches need rebasing in order to apply on top of 3.2-rc7...
OK. Further testing seems to indicate that we're going to have to
postpone merging these patches until the 3.4 merge window.
The problems are twofold:
As the patches stand now in the linux-next tree, they can (and
occasionally do) Oops on unmount. The reason was that I rejected the
PipeFS notifier patch for the idmapper (due to the reported problem of
nfs_idmap_init/nfs_idmap_quit being undefined when CONFIG_NFS_V4 is
undefined), and the fact that it is missing causes the unmount at the
end of our tests to hit the BUG() in fs/dcache.c:905. This suggests that
we will have the same problem with the pNFS block layout driver, since I
still haven't received a rebased update of the 5 'create blocklayout
pipe per network namesapce context' patches.
Hello, Trond.
I've resend the patch set (rebased with fix for nfs_idmap_init/nfs_idmap_quit).
The second problem that was highlighted was the fact that as they stand
today, these patchsets do not allow for bisection. When we hit the Oops,
I had Bryan try to bisect where the problem arose. He ended up pointing
at the patch "SUNRPC: handle RPC client pipefs dentries by network
namespace aware routine", which is indeed the cause, but which is one of
the _dependencies_ for all the PipeFS notifier patches that fix the
problem.
I'm confused here. Does this means, that I have to fix patch "SUNRPC: handle RPC
client pipefs dentries by network namespace aware routine" to make it able to
bisect?
--
Best regards,
Stanislav Kinsbursky
On Tue, 2012-01-10 at 16:58 +0400, Stanislav Kinsbursky wrote:
06.01.2012 00:58, Trond Myklebust пишет:
quoted
The second problem that was highlighted was the fact that as they stand
today, these patchsets do not allow for bisection. When we hit the Oops,
I had Bryan try to bisect where the problem arose. He ended up pointing
at the patch "SUNRPC: handle RPC client pipefs dentries by network
namespace aware routine", which is indeed the cause, but which is one of
the _dependencies_ for all the PipeFS notifier patches that fix the
problem.
I'm confused here. Does this means, that I have to fix patch "SUNRPC: handle RPC
client pipefs dentries by network namespace aware routine" to make it able to
bisect?
What I mean is that currently, I have various ways to Oops the kernel
when I apply "SUNRPC: handle RPC client pipefs dentries by network
namespace aware routine" before all these other followup patches are
applied.
One way to could fix this, might be to add dummy versions of
rpc_pipefs_notifier_register()/unregister() so that "NFS: idmap PipeFS
notifier introduced" and the other such patches can be applied without
compilation errors or Oopses before the "handle RPC client pipefs
dentries..." patch is applied. The latter could then enable the real
rpc_pipefs_notifier_register()/....
The point is to not have these patches add _known_ bugs to the kernel at
any point, so that someone who is trying to track down an unknown bug
via "git bisect" doesn't have to also cope with these avoidable
issues...
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Stanislav Kinsbursky <hidden> Date: 2012-01-11 17:23:22
11.01.2012 20:23, Trond Myklebust пишет:
On Tue, 2012-01-10 at 16:58 +0400, Stanislav Kinsbursky wrote:
quoted
06.01.2012 00:58, Trond Myklebust пишет:
quoted
The second problem that was highlighted was the fact that as they stand
today, these patchsets do not allow for bisection. When we hit the Oops,
I had Bryan try to bisect where the problem arose. He ended up pointing
at the patch "SUNRPC: handle RPC client pipefs dentries by network
namespace aware routine", which is indeed the cause, but which is one of
the _dependencies_ for all the PipeFS notifier patches that fix the
problem.
I'm confused here. Does this means, that I have to fix patch "SUNRPC: handle RPC
client pipefs dentries by network namespace aware routine" to make it able to
bisect?
What I mean is that currently, I have various ways to Oops the kernel
when I apply "SUNRPC: handle RPC client pipefs dentries by network
namespace aware routine" before all these other followup patches are
applied.
One way to could fix this, might be to add dummy versions of
rpc_pipefs_notifier_register()/unregister() so that "NFS: idmap PipeFS
notifier introduced" and the other such patches can be applied without
compilation errors or Oopses before the "handle RPC client pipefs
dentries..." patch is applied. The latter could then enable the real
rpc_pipefs_notifier_register()/....
The point is to not have these patches add _known_ bugs to the kernel at
any point, so that someone who is trying to track down an unknown bug
via "git bisect" doesn't have to also cope with these avoidable
issues...
Ok, thanks for explanation.
I've sent rebased "v2" of the patch set, contains updated patch "SUNRPC: handle
RPC client pipefs dentries by network namespace aware routine", which, I
believe, fixes oops, spotted by Bryan (it was caused by excessive call of
rpc_put_mount() on PipeFS dentries unlink).
So, if I'm not mistaken here, there's no need in implementing of dummy versions
of rpc_pipefs_notifier_(un)register() or any other dummy stuff.
BTW, it looks like that in last 2 days I've sent all updates to the issues you
pointed out. If not, please, ping me once more.
--
Best regards,
Stanislav Kinsbursky
On Wed, 2012-01-11 at 21:23 +0400, Stanislav Kinsbursky wrote:
I've sent rebased "v2" of the patch set, contains updated patch "SUNRPC: handle
RPC client pipefs dentries by network namespace aware routine", which, I
believe, fixes oops, spotted by Bryan (it was caused by excessive call of
rpc_put_mount() on PipeFS dentries unlink).
So, if I'm not mistaken here, there's no need in implementing of dummy versions
of rpc_pipefs_notifier_(un)register() or any other dummy stuff.
OK. Fair enough. We'll give it some testing to make sure that we don't
hit it again...
BTW, it looks like that in last 2 days I've sent all updates to the issues you
pointed out. If not, please, ping me once more.
I'm in the process of reviewing it right now.
Cheers
Trond
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Stanislav Kinsbursky <hidden> Date: 2012-01-11 18:03:30
11.01.2012 21:46, Trond Myklebust пишет:
On Wed, 2012-01-11 at 21:23 +0400, Stanislav Kinsbursky wrote:
quoted
I've sent rebased "v2" of the patch set, contains updated patch "SUNRPC: handle
RPC client pipefs dentries by network namespace aware routine", which, I
believe, fixes oops, spotted by Bryan (it was caused by excessive call of
rpc_put_mount() on PipeFS dentries unlink).
So, if I'm not mistaken here, there's no need in implementing of dummy versions
of rpc_pipefs_notifier_(un)register() or any other dummy stuff.
OK. Fair enough. We'll give it some testing to make sure that we don't
hit it again...
quoted
BTW, it looks like that in last 2 days I've sent all updates to the issues you
pointed out. If not, please, ping me once more.
On Wed, Nov 30, 2011 at 1:19 AM, Trond Myklebust
[off-list ref] wrote:
quoted
On Tue, 2011-11-29 at 11:42 -0500, J. Bruce Fields wrote:
quoted
On Tue, Nov 29, 2011 at 11:40:30AM -0500, Trond Myklebust wrote:
quoted
I mean that I'm perfectly entitled to do
'modprobe -r blocklayoutdriver'
and when I do that, then I expect blkmapd to close the rpc pipe and wait
for a new one to be created just like rpc.idmapd and rpc.gssd do when I
remove the nfs and sunrpc modules.
The rpc pipefs mount doesn't hold a reference on the sunrpc module?
I stand corrected: the mount does hold a reference to the sunrpc
module.
However nothing holds a reference to the blocklayoutdriver module, so
the main point that the "blocklayout" pipe can disappear from underneath
the blkmapd stands.
Thanks for the explanation and I agree it can cause problem if user
reload blocklayout module. I will look into a fix to blkmapd.
You might want to consider converting to call_usermodehelper()
I know that it greatly simplified our code both in Kernel and
in user-mode. And it made nfs-utils maintainer much happier
as well.
The speed is not Cardinal here I think. Like in objects it's
done once per new device_id
Best,
Tao
Just my $0.017
Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html