WSL2-Linux-Kernel/net/bluetooth
Linus Torvalds a11e1d432b Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL
The poll() changes were not well thought out, and completely
unexplained.  They also caused a huge performance regression, because
"->poll()" was no longer a trivial file operation that just called down
to the underlying file operations, but instead did at least two indirect
calls.

Indirect calls are sadly slow now with the Spectre mitigation, but the
performance problem could at least be largely mitigated by changing the
"->get_poll_head()" operation to just have a per-file-descriptor pointer
to the poll head instead.  That gets rid of one of the new indirections.

But that doesn't fix the new complexity that is completely unwarranted
for the regular case.  The (undocumented) reason for the poll() changes
was some alleged AIO poll race fixing, but we don't make the common case
slower and more complex for some uncommon special case, so this all
really needs way more explanations and most likely a fundamental
redesign.

[ This revert is a revert of about 30 different commits, not reverted
  individually because that would just be unnecessarily messy  - Linus ]

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-06-28 10:40:47 -07:00
..
bnep net: remove sock_no_poll 2018-05-26 09:16:44 +02:00
cmtp Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2018-06-04 13:57:43 -07:00
hidp net: remove sock_no_poll 2018-05-26 09:16:44 +02:00
rfcomm Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL 2018-06-28 10:40:47 -07:00
6lowpan.c
Kconfig
Makefile
a2mp.c
a2mp.h
af_bluetooth.c Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL 2018-06-28 10:40:47 -07:00
amp.c
amp.h
ecdh_helper.c
ecdh_helper.h
hci_conn.c Bluetooth: Fix connection if directed advertising and privacy is used 2018-04-03 16:12:56 +02:00
hci_core.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
hci_debugfs.c Bluetooth: Re-use kstrtobool_from_user() 2018-05-30 08:16:04 +02:00
hci_debugfs.h
hci_event.c Bluetooth: Prevent buffer overflow for large advertisement data 2018-05-18 06:37:51 +02:00
hci_request.c Bluetooth: use wait_event API instead of open-coding it 2018-05-18 06:37:51 +02:00
hci_request.h
hci_sock.c Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL 2018-06-28 10:40:47 -07:00
hci_sysfs.c
l2cap_core.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
l2cap_sock.c Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL 2018-06-28 10:40:47 -07:00
leds.c
leds.h
lib.c
mgmt.c Bluetooth: Mark expected switch fall-throughs 2018-04-01 21:43:03 +03:00
mgmt_util.c
mgmt_util.h
sco.c Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL 2018-06-28 10:40:47 -07:00
selftest.c
selftest.h
smp.c Bluetooth: Re-use kstrtobool_from_user() 2018-05-30 08:16:04 +02:00
smp.h