diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-19 18:21:52 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-19 18:21:52 -0400 | 
| commit | 6a396f67d2442e30150ffb5e1142dbb2f2181d3f (patch) | |
| tree | 2ea4f3ab1d3766204a55ec26600b848ed3a7e8aa /drivers/md/md.h | |
| parent | f884dcaead5f17bf586ac5fe6a3ad07b5203616a (diff) | |
| parent | cccddf4f5580131c9b963900e1d3400655e633cc (diff) | |
| download | olio-linux-3.10-6a396f67d2442e30150ffb5e1142dbb2f2181d3f.tar.xz olio-linux-3.10-6a396f67d2442e30150ffb5e1142dbb2f2181d3f.zip  | |
Merge branch 'nfsv4_xdr_cleanups-for-2.6.32' into nfs-for-2.6.32
Conflicts:
	fs/nfs/nfs4xdr.c
Diffstat (limited to 'drivers/md/md.h')
| -rw-r--r-- | drivers/md/md.h | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 78f03168baf..f8fc188bc76 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -223,6 +223,16 @@ struct mddev_s  							    * so we don't loop trying */  	int				in_sync;	/* know to not need resync */ +	/* 'open_mutex' avoids races between 'md_open' and 'do_md_stop', so +	 * that we are never stopping an array while it is open. +	 * 'reconfig_mutex' protects all other reconfiguration. +	 * These locks are separate due to conflicting interactions +	 * with bdev->bd_mutex. +	 * Lock ordering is: +	 *  reconfig_mutex -> bd_mutex : e.g. do_md_run -> revalidate_disk +	 *  bd_mutex -> open_mutex:  e.g. __blkdev_get -> md_open +	 */ +	struct mutex			open_mutex;  	struct mutex			reconfig_mutex;  	atomic_t			active;		/* general refcount */  	atomic_t			openers;	/* number of active opens */  |