Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311187
b: refs/heads/master
c: 0a9c63f
h: refs/heads/master
i:
  311185: 2d22bdf
  311183: 1126870
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jun 19, 2012
1 parent 5475d2b commit e393b55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a4c8994eeef50796015f8a2005e4a75c1929166
refs/heads/master: 0a9c63fae7df086ff5e107273c3cce8642430974
8 changes: 4 additions & 4 deletions trunk/fs/nfs/pnfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ find_pnfs_driver(u32 id)

spin_lock(&pnfs_spinlock);
local = find_pnfs_driver_locked(id);
if (local != NULL && !try_module_get(local->owner)) {
dprintk("%s: Could not grab reference on module\n", __func__);
local = NULL;
}
spin_unlock(&pnfs_spinlock);
return local;
}
Expand Down Expand Up @@ -118,10 +122,6 @@ set_pnfs_layoutdriver(struct nfs_server *server, const struct nfs_fh *mntfh,
goto out_no_driver;
}
}
if (!try_module_get(ld_type->owner)) {
dprintk("%s: Could not grab reference on module\n", __func__);
goto out_no_driver;
}
server->pnfs_curr_ld = ld_type;
if (ld_type->set_layoutdriver
&& ld_type->set_layoutdriver(server, mntfh)) {
Expand Down

0 comments on commit e393b55

Please sign in to comment.