From ddc648e0313291a865e6c8fdf9f131d2f87715d5 Mon Sep 17 00:00:00 2001 From: adilger Date: Sun, 8 Sep 2002 09:56:57 +0000 Subject: [PATCH] Initialize spinlock for obdecho creates. --- lustre/obdecho/echo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lustre/obdecho/echo.c b/lustre/obdecho/echo.c index 9116226..bc242a9 100644 --- a/lustre/obdecho/echo.c +++ b/lustre/obdecho/echo.c @@ -12,8 +12,8 @@ * and Andreas Dilger */ -static char rcsid[] __attribute ((unused)) = "$Id: echo.c,v 1.34 2002/09/08 07:59:39 adilger Exp $"; -#define OBDECHO_VERSION "$Revision: 1.34 $" +static char rcsid[] __attribute ((unused)) = "$Id: echo.c,v 1.35 2002/09/08 09:56:57 adilger Exp $"; +#define OBDECHO_VERSION "$Revision: 1.35 $" #define EXPORT_SYMTAB @@ -93,7 +93,7 @@ void echo_proc_fini(void) } static int echo_connect(struct lustre_handle *conn, struct obd_device *obd, - uuid_t cluuid) + obd_uuid_t cluuid) { int rc; @@ -406,6 +406,7 @@ static int echo_setup(struct obd_device *obddev, obd_count len, void *buf) LBUG(); RETURN(-ENOMEM); } + spin_lock_init(&obddev->u.echo.eo_lock); obddev->u.echo.eo_lastino = ECHO_INIT_OBJID; RETURN(0); -- 1.8.3.1