summaryrefslogtreecommitdiffstats
path: root/fs/9p/v9fs.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-10-14 01:45:25 +0200
committerEric Van Hensbergen <ericvh@gmail.com>2008-10-17 18:04:41 +0200
commit992b3f1dbeec401e19a80bdb8c81e5df5381f4c5 (patch)
tree5efa63f094f05fcb0cd83899cf0aad0ac7871018 /fs/9p/v9fs.c
parent{pci,pnp} quirks.c: don't use deprecated print_fn_descriptor_symbol() (diff)
downloadlinux-992b3f1dbeec401e19a80bdb8c81e5df5381f4c5.tar.xz
linux-992b3f1dbeec401e19a80bdb8c81e5df5381f4c5.zip
9p-trans_fd: use single poller
trans_fd used pool of upto 100 pollers to monitor the r/w fds. The approach makes sense in userspace back when the only available interfaces were poll(2) and select(2). As each event monitor - trigger - handling iteration took O(n) where `n' is the number of watched fds, it makes sense to spread them to many pollers such that the `n' can be divided by the number of pollers. However, this doesn't make any sense in kernel because persistent edge triggered event monitoring is how the whole thing is implemented in the kernel in the first place. This patch converts trans_fd to use single poller which watches all the fds instead of the poll of pollers approach. All the fds are registered for monitoring on creation and only the fds with pending events are scanned when something happens much like how epoll is implemented. This change makes trans_fd fd monitoring more efficient and simpler. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/v9fs.c')
0 files changed, 0 insertions, 0 deletions