Signed-off-by: Robert Love <[EMAIL PROTECTED]>
---
include/scsi/libfc/libfc.h | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/include/scsi/libfc/libfc.h b/include/scsi/libfc/libfc.h
index c9afeed..b201749 100644
--- a/include/scsi/libfc/libfc.h
+++ b/include/scsi/libfc/libfc.h
@@ -465,15 +465,25 @@ static inline int fc_lport_locked(struct fc_lport *lp)
#endif /* CONFIG_SMP || CONFIG_DEBUG_SPINLOCK */
}
+#define fc_lport_lock(x) { \
+ FC_DBG("locking\n"); \
+ _fc_lport_lock(x); \
+ }
+
+#define fc_lport_unlock(x) { \
+ FC_DBG("unlocking\n"); \
+ _fc_lport_unlock(x); \
+ }
+
/*
* Locking code.
*/
-static inline void fc_lport_lock(struct fc_lport *lp)
+static inline void _fc_lport_lock(struct fc_lport *lp)
{
spin_lock_bh(&lp->state_lock);
}
-static inline void fc_lport_unlock(struct fc_lport *lp)
+static inline void _fc_lport_unlock(struct fc_lport *lp)
{
spin_unlock_bh(&lp->state_lock);
}
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel