dm mpath: use atomic_t for counting members of 'struct multipath'
authorMike Snitzer <snitzer@redhat.com>
Thu, 17 Mar 2016 21:10:15 +0000 (17:10 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 5 May 2016 19:25:51 +0000 (15:25 -0400)
commit91e968aa6015d7366281b532dad2e48855b91fe3
tree04dc336330a587a11ae3870d201225f43b3cb012
parent518257b13276d07a19e6ae0608b8e5ee73383ce4
dm mpath: use atomic_t for counting members of 'struct multipath'

The use of atomic_t for nr_valid_paths, pg_init_in_progress and
pg_init_count will allow relaxing the use of the m->lock spinlock.

Suggested-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c