From: adilger Date: Sun, 8 Sep 2002 09:56:57 +0000 (+0000) Subject: Initialize spinlock for obdecho creates. X-Git-Tag: 0.5.7~17 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=ddc648e0313291a865e6c8fdf9f131d2f87715d5;p=fs%2Flustre-release.git Initialize spinlock for obdecho creates. --- 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);