s3 onefs: Fix 1 second share mode delay handling
authorSteven Danneman <steven.danneman@isilon.com>
Thu, 14 May 2009 23:14:03 +0000 (23:14 +0000)
committerTim Prouty <tprouty@samba.org>
Thu, 24 Sep 2009 18:31:35 +0000 (11:31 -0700)
commit60433b154dc345f8883b15d657e3f7d5c21fc6a1
tree74c6b3bd612ae218e451d220f1d2cce9edf27072
parent74c0a7a1d34a75abec32cc46ab0b02b483160215
s3 onefs: Fix 1 second share mode delay handling

When racing to the open and loosing we may get a share_mode violation.
In this case handle the 1-second delay via a defferred open properly.

This requires us to retrieve the share_mode_lock before deferring
open so we don't dereference a NULL pointer assuming we already had
the lck because we were the first opener.
source3/modules/onefs_open.c