OSDN Git Service

[PATCH] fuse: fix fuse_dev_poll() return value
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 11 Apr 2006 05:54:50 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:47 +0000 (06:18 -0700)
commit7025d9ad10a38dadef8b286e0092731c2d3cdc53
tree054f5ce4a0b7a0d3793e66f094af4905a68d1896
parentd3406ffa4af8af1d7c14cff06e003eb0a557d4ad
[PATCH] fuse: fix fuse_dev_poll() return value

fuse_dev_poll() returned an error value instead of a poll mask.  Luckily (or
unluckily) -ENODEV does contain the POLLERR bit.

There's also a race if filesystem is unmounted between fuse_get_conn() and
spin_lock(), in which case this event will be missed by poll().

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fuse/dev.c