linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Idan Kedar <idank@tonian.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 1/2] pnfs-obj: disable unloading the module when mounted
Date: Thu,  7 Jun 2012 22:06:30 +0300	[thread overview]
Message-ID: <1339095991-26753-2-git-send-email-idank@tonian.com> (raw)
In-Reply-To: <1339095991-26753-1-git-send-email-idank@tonian.com>

or the kernel will oops.

Signed-off-by: Idan Kedar <idank@tonian.com>
---
 fs/nfs/objlayout/objio_osd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c
index 55d0128..b161f97 100644
--- a/fs/nfs/objlayout/objio_osd.c
+++ b/fs/nfs/objlayout/objio_osd.c
@@ -551,6 +551,7 @@ static const struct nfs_pageio_ops objio_pg_write_ops = {
 static struct pnfs_layoutdriver_type objlayout_type = {
 	.id = LAYOUT_OSD2_OBJECTS,
 	.name = "LAYOUT_OSD2_OBJECTS",
+	.owner = THIS_MODULE,
 	.flags                   = PNFS_LAYOUTRET_ON_SETATTR |
 				   PNFS_LAYOUTRET_ON_ERROR,
 
-- 
1.7.6.5


  reply	other threads:[~2012-06-07 19:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-07 19:06 [PATCH 0/2] pNFS: disable unloading a layout driver when mounted Idan Kedar
2012-06-07 19:06 ` Idan Kedar [this message]
2012-06-07 21:09   ` [PATCH 1/2] pnfs-obj: disable unloading the module " Boaz Harrosh
2012-06-07 19:06 ` [PATCH 2/2] pnfsblock: " Idan Kedar

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=1339095991-26753-2-git-send-email-idank@tonian.com \
    --to=idank@tonian.com \
    --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).