From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753162Ab2LDNth (ORCPT ); Tue, 4 Dec 2012 08:49:37 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:19479 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007Ab2LDNtf (ORCPT ); Tue, 4 Dec 2012 08:49:35 -0500 Subject: [PATCH 0/6] nfsd: cleanup "init_net" references To: bfields@fieldses.org From: Stanislav Kinsbursky Cc: linux-nfs@vger.kernel.org, Trond.Myklebust@netapp.com, linux-kernel@vger.kernel.org, devel@openvz.org Date: Tue, 04 Dec 2012 16:50:00 +0300 Message-ID: <20121204134920.24504.95261.stgit@localhost.localdomain> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hard-coded "init_net" pointer is widely used in NFSd code. This patch replaces "init_net" references by passed struct net pointer where requied. In future, proper network namespace context will be taken from NFSd file system superblock private data or, where it's impossible, from current. The following series implements... --- Stanislav Kinsbursky (6): nfsd: pass net to nfsd_init_socks() nfsd: pass net to nfsd_startup() and nfsd_shutdown() nfsd: pass net to nfsd_create_serv() nfsd: pass net to nfsd_svc() nfsd: pass net to nfsd_set_nrthreads() nfsd: pass net to __write_ports() and down fs/nfsd/nfsctl.c | 27 +++++++++++++++------------ fs/nfsd/nfsd.h | 6 +++--- fs/nfsd/nfssvc.c | 34 ++++++++++++++-------------------- 3 files changed, 32 insertions(+), 35 deletions(-)