summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_drv.h
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-03-19 11:07:09 -0700
committerJames Bottomley <James.Bottomley@suse.de>2010-04-11 09:24:20 -0500
commit42b426ecb453cf49c3d16cf1d7a5e5d8cab9869d (patch)
tree42ca564f37e62c7797cea8816ac934e5347ea757 /drivers/scsi/bfa/bfad_drv.h
parentb3522f08ec7011aed0abc477bfedd00d189e9cd6 (diff)
downloadlinux-stable-42b426ecb453cf49c3d16cf1d7a5e5d8cab9869d.tar.gz
linux-stable-42b426ecb453cf49c3d16cf1d7a5e5d8cab9869d.tar.bz2
linux-stable-42b426ecb453cf49c3d16cf1d7a5e5d8cab9869d.zip
[SCSI] bfa: protect idr using bfad_mutex
idr is a global resource, protect it with global bfad_mutex. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfad_drv.h')
-rw-r--r--drivers/scsi/bfa/bfad_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad_drv.h b/drivers/scsi/bfa/bfad_drv.h
index 0639aedcb610..6c920c1b53a4 100644
--- a/drivers/scsi/bfa/bfad_drv.h
+++ b/drivers/scsi/bfa/bfad_drv.h
@@ -293,5 +293,6 @@ extern struct list_head bfad_list;
extern int bfa_lun_queue_depth;
extern int bfad_supported_fc4s;
extern int bfa_linkup_delay;
+extern struct mutex bfad_mutex;
#endif /* __BFAD_DRV_H__ */