Windows: buf_CleanVnode avoid lock contention
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 20 Mar 2013 14:04:41 +0000 (10:04 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 22 Mar 2013 14:29:29 +0000 (07:29 -0700)
commitcda4f6c3ff92a35e2ff8b2eb114729144fff165f
tree2848600ecb94870df2b83e477559e197364675df
parentf9dac53a75aff66696f78255ed08cc49c696d337
Windows: buf_CleanVnode avoid lock contention

In the middle of the big loop do not obtain buf_globalLock unless
cm_buf.qFlags & CM_BUF_QREDIR is non-zero.  buf_globalLock is heavily
contested and any reduction in contention is an improvement.
CM_BUF_QREDIR is never set when 'cm_directIO' is true (now the default)
so this is a huge win.

Change-Id: I0b150bf77a0f1d748f94026d3b74bc7d90e7c3c6
Reviewed-on: http://gerrit.openafs.org/9636
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/cm_buf.c