7121: 7218: Get the serialize lock before opening a file.
authorTom Clegg <tom@curoverse.com>
Tue, 8 Sep 2015 15:05:45 +0000 (11:05 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 8 Sep 2015 15:05:45 +0000 (11:05 -0400)
commit8cefa5450eb57cfa06f13721228ba1913e7f8c3a
tree0d7b0f9492ed9cb38c598b6941d232c83fbaba84
parentd2db86b680a87c67fbdd59e372f42505ae8c2d4e
7121: 7218: Get the serialize lock before opening a file.

In certain error cases (Stat() succeeds but Open() fails) this can
cause a failure to wait behind the serialize lock, but in normal
operation ("success" and "not found") it conserves open file handles
when there's a lot of contention for the serialize lock.
services/keepstore/volume_unix.go