staging/lustre: Replace sun.com GPLv2 URL with gnu.org one.
[linux-2.6-block.git] / drivers / staging / lustre / lustre / include / obd_class.h
index 706869f8c98f6e2590d79796d7e4d08ef23c6591..21967440b46aa8d68b97ffe2cea63055697a6cd3 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
  *
  * GPL HEADER END
  */
@@ -477,7 +473,7 @@ static inline int obd_setup(struct obd_device *obd, struct lustre_cfg *cfg)
                struct lu_context  session_ctx;
                struct lu_env env;
 
-               lu_context_init(&session_ctx, LCT_SESSION);
+               lu_context_init(&session_ctx, LCT_SESSION | LCT_SERVER_SESSION);
                session_ctx.lc_thread = NULL;
                lu_context_enter(&session_ctx);
 
@@ -490,8 +486,9 @@ static inline int obd_setup(struct obd_device *obd, struct lustre_cfg *cfg)
                                obd->obd_lu_dev = d;
                                d->ld_obd = obd;
                                rc = 0;
-                       } else
+                       } else {
                                rc = PTR_ERR(d);
+                       }
                }
                lu_context_exit(&session_ctx);
                lu_context_fini(&session_ctx);