[Open-FCoE] [PATCH 1/1] libfc: add locking comment to fc_exch.

michaelc at cs.wisc.edu michaelc at cs.wisc.edu
Thu Sep 11 00:47:53 UTC 2008


From: Mike Christie <michaelc at cs.wisc.edu>

This just documents how to hol the ex_lock and em_lock at
the same time so it is clear to reviewers and developers.

This also adds copyrights to fc_exch.c for past patches.

Signed-off-by: Mike Christie <michaelc at cs.wisc.edu>
---
 drivers/scsi/libfc/fc_exch.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
index 60a12e7..90c5fcf 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -1,5 +1,7 @@
 /*
  * Copyright(c) 2007 Intel Corporation. All rights reserved.
+ * Copyright(c) 2008 Red Hat, Inc.  All rights reserved.
+ * Copyright(c) 2008 Mike Christie
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -73,6 +75,9 @@ struct fc_exch;
  *	esb_stat, f_ctl, seq.ssb_stat, seq.f_ctl.
  *	seq_id
  *	sequence allocation
+ *
+ * If the em_lock and ex_lock must be taken at the same time, the
+ * em_lock must be taken before the ex_lock.
  */
 struct fc_exch {
 	struct fc_exch_mgr *em;		/* exchange manager */
-- 
1.5.5.1




More information about the devel mailing list