[PATCH 0/4 RFC] improve some nfsd_mutex locking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The first patch fixes a bug with locking as reported by Li
Lingfeng: some write_foo functions aren't locked properly.

The other two improve the locking code, particulary so that we don't
need a global mutex to change per-netns data.

A final patch revises the locking to use guard(mutex) for all places
that the ->config_mutex is used.  I think this is an improvement but
would like to know what others think.

I've put the gobal cleanup code in the module exit function so that the
locking is already managed.

NeilBrown

 [PATCH 1/4] nfsd: provide proper locking for all write_ function
 [PATCH 2/4] nfsd: use mutex for global config management and clean up
 [PATCH 3/4] nfsd: split nfsd_mutex into one mutex per net-namespace.
 [PATCH 4/4] nfsd: use guard(mutex) for all ->config_mutex locking.




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux