szastupov/illumos-gate — comment on commit a9eb21a01f52130ad60c21096ff7e85cedf6c324
File: usr/src/uts/common/fs/sharefs/sharefs_vnops.c line 281
By szastupov:

If I understand it correctly, count argument is usually taken from f_count field of file_t. f_count increments on fork(). According to 'man fork' locks aren't supposed to be inherited so I guess I should move the cleanups above this check. Thanks for noticing.