2016-06-01 15:52 GMT+02:00 Al Viro <viro@xxxxxxxxxxxxxxxxxx>: > For regular files, the kernel serializes read()/write()/lseek() done on > descriptors aliasing each other. Now it does the same for getdents()/lseek() > of directories. > > From the filesystem point of view, you might see two getdents() called > in parallel only if their results should be unaffected by the order of > operations. Ah right! Now I understand. Thanks a lot for your explanation! Of course when a second descriptor refers the same object, operations like read/lseek have to be serialized. If not strange things will happen. I was thinking on a totally different level. Stef -- 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