On Mon, Mar 3, 2014 at 2:09 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote: > > Yes, but in that case fdget() has grabbed a reference to that sucker, > so the only way to end with refcount 1 is to have the damn thing gone > from descriptor table in between. And AFAICS in that case we are just > fine without f_pos_lock. Ahh. Yes, you're right, just checking the file_count() is sufficient, because as you say, the threaded case will have incremented it for the case we care about./ Linus -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html