[fuse] fix race between checking and setting file->private_data
authorMiklos Szeredi <miklos@szeredi.hu>
Wed, 26 Apr 2006 08:49:16 +0000 (10:49 +0200)
committerMiklos Szeredi <miklos@szeredi.hu>
Wed, 26 Apr 2006 08:49:16 +0000 (10:49 +0200)
BKL does not protect against races if the task may sleep between
checking and setting a value.  So move checking of file->private_data
near to setting it in fuse_fill_super().

Found by Al Viro.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>

No differences found