/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=8:tabstop=8:
*
- * api/api-ni.c
- * Network Interface code
- *
* Copyright (c) 2001-2003 Cluster File Systems, Inc.
- * Copyright (c) 2001-2002 Sandia National Laboratories
*
* This file is part of Lustre, http://www.sf.net/projects/lustre/
*
static struct nal_t *ptl_nal_table[NAL_MAX_NR + 1];
#ifdef __KERNEL__
-DECLARE_MUTEX(ptl_mutex);
+struct semaphore ptl_mutex;
static void ptl_mutex_enter (void)
{
- down (&ptl_mutex);
+ mutex_down (&ptl_mutex);
}
static void ptl_mutex_exit (void)
{
- up (&ptl_mutex);
+ mutex_up (&ptl_mutex);
}
#else
static void ptl_mutex_enter (void)