Re: [PATCH 17/67] microblaze: rename dma_direct to dma_microblaze

2018-01-04 Thread Christoph Hellwig
On Fri, Dec 29, 2017 at 09:11:56PM +1100, Julian Calaby wrote: > Hi Christoph, > > On Fri, Dec 29, 2017 at 7:18 PM, Christoph Hellwig wrote: > > This frees the dma_direct_* namespace for a generic implementation. > > Don't you mean "dma_nommu" not "dma_microblaze" in the subject line? Yes, than

Re: [PATCH v2 03/12] x86/retpoline/entry: Convert entry assembler indirect jumps

2018-01-04 Thread David Woodhouse
On Wed, 2018-01-03 at 18:00 -0800, Andi Kleen wrote: > @@ -269,8 +270,9 @@ entry_SYSCALL_64_fastpath: > * This call instruction is handled specially in stub_ptregs_64. > * It might end up jumping to the slow path.  If it jumps, RAX > * and all argument registers are clobb

[PATCH V2] nvme-pci: fix NULL pointer reference in nvme_alloc_ns

2018-01-04 Thread Jianchao Wang
When the io queues setup or tagset allocation failed, ctrl.tagset is NULL. But the scan work will still be queued and executed, then panic comes up due to NULL pointer reference of ctrl.tagset. To fix this, add a new ctrl state NVME_CTRL_ADMIN_LIVE to inidcate only admin queue is live. When non io

Re: [PATCH V7] mmc:host:sdhci-pci:Addition of Arasan PCI Controller with integrated phy.

2018-01-04 Thread Adrian Hunter
On 04/01/18 06:17, Atul Garg wrote: > The Arasan Controller is based on a FPGA platform and has integrated phy > with specific registers used during initialization and > management of different modes. The phy and the controller are integrated > and registers are very specific to Arasan. > > Arasan

Re: Coccinelle: Rename the script for a transformation of memory allocations

2018-01-04 Thread SF Markus Elfring
>> Would you insist to replace such “special characters” by dashes or >> underscores? > > Yes. But I will also nack any very long name. Would you find the the file name selection “zalloc-extra_changes1.cocci” acceptable? Regards, Markus

Re: [PATCH] of/fdt: Fix #ifdef dependency of early flattree declarations

2018-01-04 Thread Geert Uytterhoeven
Hi Fengguang, On Thu, Jan 4, 2018 at 12:16 AM, kbuild test robot wrote: > I love your patch! Yet something to improve: Thanks, I love your report! > url: > https://github.com/0day-ci/linux/commits/Geert-Uytterhoeven/of-fdt-Fix-ifdef-dependency-of-early-flattree-declarations/201801

Re: Avoid speculative indirect calls in kernel

2018-01-04 Thread Woodhouse, David
On Wed, 2018-01-03 at 16:40 -0800, Andi Kleen wrote: > > > > So you say, that we finally need a perl interpreter in the kernel > > to do > > alternative patching? > I don't think perl or objtool makes sense. That would be just > incredibly > fragile because compilers can reorder and mix code.  >

Re: [PATCH 09/11] x86/retpoline: Finally enable retpoline for C code

2018-01-04 Thread Dave Hansen
On 01/04/2018 12:28 AM, Greg KH wrote: > On Wed, Jan 03, 2018 at 03:09:32PM -0800, Andi Kleen wrote: >> From: Dave Hansen >> >> From: David Woodhouse > We do now accept "Co-Developed-by:" in the signed-off-by area to handle > patches that are worked on by multiple people. FWIW, this was probably

RE: [char-misc-next] mei: me: allow runtime pm for platform with D0i3

2018-01-04 Thread Winkler, Tomas
mei: me: allow runtime pm for platform with > D0i3 > > On 1/2/2018 11:01 AM, Tomas Winkler wrote: > > From the pci power documentation: > > "The driver itself should not call pm_runtime_allow(), though. > > Instead, it should let user space or some platform-specific code do > > that (user space c

Re: [PATCH 09/11] x86/retpoline: Finally enable retpoline for C code

2018-01-04 Thread Greg KH
On Wed, Jan 03, 2018 at 03:09:32PM -0800, Andi Kleen wrote: > From: Dave Hansen > > From: David Woodhouse We do now accept "Co-Developed-by:" in the signed-off-by area to handle patches that are worked on by multiple people. thanks, greg k-h

Re: Avoid speculative indirect calls in kernel

2018-01-04 Thread Woodhouse, David
On Thu, 2018-01-04 at 03:11 +0100, Paolo Bonzini wrote: > On 04/01/2018 02:59, Alan Cox wrote: > >> But then, exactly because the retpoline approach adds quite some cruft > >> and leaves something to be desired, why even bother? > > > > Performance > > Dunno.  If I care about mitigating this threa

[PATCH bpf-next v5 4/4] samples/bpf: use bpf_set_link_xdp_fd

2018-01-04 Thread Eric Leblond
Use bpf_set_link_xdp_fd instead of set_link_xdp_fd to remove some code duplication and benefit of netlink ext ack errors message. Signed-off-by: Eric Leblond --- samples/bpf/bpf_load.c | 102 samples/bpf/bpf_load.h | 2 +- samples/

Re: [RFC] pwm-backlight: Allow backlight to remain disabled on boot

2018-01-04 Thread Peter Ujfalusi
Hi, On 2018-01-04 04:18, hl wrote: > Hi All, > >     Since many panel power sequence request backlight stay disable > > before panel power ready, but with now pwm-backlight drvier, it default to > > enable backlight when pwm-backlight probe, it mess up the panel power > sequence. > > So we nee

[PATCH bpf-next v5 3/4] libbpf: add missing SPDX-License-Identifier

2018-01-04 Thread Eric Leblond
Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c| 2 ++ tools/lib/bpf/bpf.h| 2 ++ tools/lib/bpf/libbpf.c | 2 ++ tools/lib/bpf/libbpf.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c index 10d71b9fdbd0..38

[PATCH bpf-next v5 2/4] libbpf: add error reporting in XDP

2018-01-04 Thread Eric Leblond
Parse netlink ext attribute to get the error message returned by the card. Code is partially take from libnl. Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- samples/bpf/Makefile | 2 +- tools/lib/bpf/Build| 2 +- tools/lib/bpf/bpf.c| 10 ++- tools/lib/bpf/nlattr.c |

[PATCH bpf-next v5 1/4] libbpf: add function to setup XDP

2018-01-04 Thread Eric Leblond
Most of the code is taken from set_link_xdp_fd() in bpf_load.c and slightly modified to be library compliant. Signed-off-by: Eric Leblond Acked-by: Alexei Starovoitov --- tools/lib/bpf/bpf.c| 126 + tools/lib/bpf/libbpf.c | 2 + tools/lib/bp

Re: bonding: Completion of error handling around bond_update_slave_arr()

2018-01-04 Thread SF Markus Elfring
> If you see 8 out of 9 call sites in this file ignore the return value. How do you think about to fix error detection and corresponding exception handling then? Regards, Markus

Re: [PATCH] mm/fadvise: discard partial pages iff endbyte is also eof

2018-01-04 Thread 夷则(Caspar)
On 2018/1/4 08:17, Andrew Morton wrote: On Wed, 3 Jan 2018 10:48:00 + Mel Gorman wrote: On Wed, Jan 03, 2018 at 02:53:43PM +0800, ??(Caspar) wrote: ?? 2017??12??2312:16?? ?? From: "shidao.ytt" in commit 441c228f817f7 ("mm: fadvise: document the fadvise(FADV_DONTN

[PATCH 03/31] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-01-04 Thread Christoph Hellwig
->get_poll_head returns the waitqueue that the poll operation is going to sleep on. Note that this means we can only use a single waitqueue for the poll, unlike some current drivers that use two waitqueues for different events. But now that we have keyed wakeups and heavily use those for poll the

[PATCH 01/31] fs: update documentation for __poll_t

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- Documentation/filesystems/Locking | 2 +- Documentation/filesystems/vfs.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index 75d2d57e2c44..220bba28f72b 100644 --

[PATCH 04/31] net: add support for ->poll_mask in proto_ops

2018-01-04 Thread Christoph Hellwig
The socket file operations still implement ->poll until all protocols are switched over. Signed-off-by: Christoph Hellwig --- include/linux/net.h | 3 +++ net/socket.c| 61 + 2 files changed, 60 insertions(+), 4 deletions(-) diff --gi

[PATCH 09/31] net/dccp: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/dccp/dccp.h | 4 ++-- net/dccp/ipv4.c | 2 +- net/dccp/ipv6.c | 2 +- net/dccp/proto.c | 14 +++--- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index f91e3816806b..23b0cbdb1c6f 100644 ---

[PATCH 11/31] net/vmw_vsock: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/vmw_vsock/af_vsock.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c index bbd97d3bd8fb..bfd59b1da741 100644 --- a/net/vmw_vsock/af_vsock.c +++ b/net/vmw_vsock/af

[PATCH 15/31] net/caif: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/caif/caif_socket.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c index 64048cec41e0..bf34e9446384 100644 --- a/net/caif/caif_socket.c +++ b/net/caif/caif_socket.c @@ -934,1

[PATCH 20/31] pipe: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/pipe.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/fs/pipe.c b/fs/pipe.c index a449ca0ec0c6..33a32d13b83d 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -514,19 +514,22 @@ static long pipe_ioctl(struct file *filp,

[PATCH 18/31] net/iucv: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/iucv/af_iucv.h | 2 -- net/iucv/af_iucv.c | 8 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h index f4c21b5a1242..b0eaeb02d46d 100644 --- a/include/net/iucv/af

[PATCH 19/31] net/rxrpc: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/rxrpc/af_rxrpc.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 21ad6a3a465c..83d9bf60eb22 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c @@ -729,15 +729,12 @@

Re: [PATCH 4.9 00/39] 4.9.75-stable review

2018-01-04 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 12:31:49PM +0530, Naresh Kamboju wrote: > On 4 January 2018 at 01:41, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.9.75 release. > > There are 39 patches in this series, all will be posted as a response > > to this one. If anyone h

Re: [PATCH 4.4 00/37] 4.4.110-stable review

2018-01-04 Thread Greg Kroah-Hartman
On Wed, Jan 03, 2018 at 03:08:09PM -0700, Nathan Chancellor wrote: > Not that my feedback will matter much on this release since Pixel 2 XL > is an arm64 device but merged, compiled, and flashed successfully. Hey, it's good to know I didn't break anything :) > The changes to kernel/fork.c had to

[PATCH 25/31] aio: refactor read/write iocb setup

2018-01-04 Thread Christoph Hellwig
Don't reference the kiocb structure from the common aio code, and move any use of it into helper specific to the read/write path. This is in preparation for aio_poll support that wants to use the space for different fields. Signed-off-by: Christoph Hellwig --- fs/aio.c | 172 +++

[PATCH 24/31] aio: remove an outdated comment in aio_complete

2018-01-04 Thread Christoph Hellwig
These days we don't treat sync iocbs special in the aio completion code as they never use it. Remove the old comment, and move the BUG_ON for a sync iocb to the top of the function. Signed-off-by: Christoph Hellwig --- fs/aio.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-)

[PATCH 26/31] aio: sanitize ki_list handling

2018-01-04 Thread Christoph Hellwig
Instead of handcoded non-null checks always initialize ki_list to an empty list and use list_empty / list_empty_careful on it. While we're at it also error out on a double call to kiocb_set_cancel_fn instead of ignoring it. Signed-off-by: Christoph Hellwig --- fs/aio.c | 13 ++--- 1 fil

[PATCH 31/31] aio: implement io_pgetevents

2018-01-04 Thread Christoph Hellwig
This is the io_getevents equivalent of ppoll/pselect and allows to properly mix signals and aio completions (especially with IOCB_CMD_POLL) and atomically executes the following sequence: sigset_t origmask; pthread_sigmask(SIG_SETMASK, &sigmask, &origmask); ret = io_geteve

[PATCH 28/31] aio: delete iocbs from the active_reqs list in kiocb_cancel

2018-01-04 Thread Christoph Hellwig
One we cancel an iocb there is no reason to keep it on the active_reqs list, given that the list is only used to look for cancelation candidates. Signed-off-by: Christoph Hellwig --- fs/aio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index 6204c1

[PATCH v5 4/4] document: change the document for immovable_mem

2018-01-04 Thread Chao Fan
Add the document for the change of new parameter immovable_mem=nn[KMG][@ss[KMG]]. Signed-off-by: Chao Fan --- Documentation/admin-guide/kernel-parameters.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-gui

[PATCH 30/31] aio: implement IOCB_CMD_POLL

2018-01-04 Thread Christoph Hellwig
Simple one-shot poll through the io_submit() interface. To poll for a file descriptor the application should submit an iocb of type IOCB_CMD_POLL. It will poll the fd for the events specified in the the first 32 bits of the aio_buf field of the iocb. Unlike poll or epoll without EPOLLONESHOT thi

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2018-01-04 Thread Christophe LEROY
Le 25/12/2017 à 02:34, Yisheng Xie a écrit : On 2017/12/24 17:05, christophe leroy wrote: Le 23/12/2017 à 14:48, Greg KH a écrit : On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: Hi all, When I tried to use devm_ioremap function and review related code, I found devm_ioremap

[PATCH 4/6] move the aio_ring defintion and empty check into a header

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- src/aio_ring.h | 49 + src/io_getevents.c | 28 +++- 2 files changed, 52 insertions(+), 25 deletions(-) create mode 100644 src/aio_ring.h diff --git a/src/aio_ring.h b/src/aio_ring.h

[PATCH 1/6] resurrect aio poll support

2018-01-04 Thread Christoph Hellwig
Now that we have poll support in mainline, remove comments about the do not use status. Signed-off-by: Christoph Hellwig --- src/libaio.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libaio.h b/src/libaio.h index a5cd2e1..a1a8fc4 100644 --- a/src/libaio.h +++ b/src/

Re: "bad pmd" errors + oops with KPTI on 4.14.11 after loading X.509 certs

2018-01-04 Thread Greg Kroah-Hartman
On Thu, Jan 04, 2018 at 08:20:31AM +0100, Ingo Molnar wrote: > > * Greg Kroah-Hartman wrote: > > > On Thu, Jan 04, 2018 at 08:14:21AM +0100, Ingo Molnar wrote: > > > - (or it's something I missed to consider) > > > > It was a operator error, the issue is also on 4.15-rc6, see another > > email

[PATCH 3/6] provide a generic io_syscall6

2018-01-04 Thread Christoph Hellwig
This allows to call a 6-argument syscall using the generic syscall() function from libc. No arch-specific version is specified as it would be a lot of effort for very little gain. Signed-off-by: Christoph Hellwig --- src/syscall.h | 9 + 1 file changed, 9 insertions(+) diff --git a/src

[PATCH 2/6] move _body_io_syscall to the generic syscall.h

2018-01-04 Thread Christoph Hellwig
This way it can be used for the fallback 6-argument version on all architectures. Signed-off-by: Christoph Hellwig --- src/syscall-generic.h | 6 -- src/syscall.h | 7 +++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/syscall-generic.h b/src/syscall-generic.h

[PATCH 6/6] add test for aio poll and io_pgetevents

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- harness/cases/22.t | 149 + 1 file changed, 149 insertions(+) create mode 100644 harness/cases/22.t diff --git a/harness/cases/22.t b/harness/cases/22.t new file mode 100644 index 000..a9fec6b --- /dev/

[PATCH 5/6] add support for io_pgetevents

2018-01-04 Thread Christoph Hellwig
This is ppoll/pselect equivalent for io_getevents. It atomically executes the following sequence: sigset_t origmask; pthread_sigmask(SIG_SETMASK, &sigmask, &origmask); ret = io_getevents(ctx, min_nr, nr, events, timeout); pthread_sigmask(SIG_SETMASK, &origmask, NU

libaio: resurrect aio poll and add io_pgetevents support

2018-01-04 Thread Christoph Hellwig
Hi all, this series resurrects IOCB_CMD_POLL support and adds support for the new io_pgetevents system call, as well as adding a test case. Git branch: git://git.infradead.org/users/hch/libaio.git aio-poll Gitweb: http://git.infradead.org/users/hch/libaio.git/shortlog/refs/heads/aio-po

[PATCH v5 3/4] kaslr: disable memory mirror feature when movable_node

2018-01-04 Thread Chao Fan
In kernel code, if movable_node specified, it will skip the mirror feature. So we should also skip mirror feature in kaslr. Signed-off-by: Chao Fan --- arch/x86/boot/compressed/kaslr.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/com

[PATCH v5 2/4] kaslr: calculate the memory region in immovable node

2018-01-04 Thread Chao Fan
If there is no immovable memory region specified, use region directely. There are several conditons: 1. CONFIG_MEMORY_HOTPLUG is not specified to y. 2. immovable_mem= is not specified. Otherwise, calculate the intersecting between memmap entry and immovable memory. Rename process_mem_region to sl

[PATCH v5 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory

2018-01-04 Thread Chao Fan
In current code, kaslr may choose the memory region in movable nodes to extract kernel, which will make the nodes can't be hot-removed. To solve it, we can specify the memory region in immovable node. Create immovable_mem to store the regions in immovable_mem, where should be chosen by kaslr. Also

[PATCH v5 0/4] kaslr: add parameter immovable_mem=nn[KMG]@ss[KMG] to make memory hotplug work well with kaslr

2018-01-04 Thread Chao Fan
Here is a problem: Here is a machine with several NUMA nodes and some of them are hot-pluggable. It's not good for kernel to be extracted in the memory region of movable node. But in current code, I print the address chosen by kaslr and found it may be placed in movable node sometimes. To solve th

[PATCH 29/31] aio: add delayed cancel support

2018-01-04 Thread Christoph Hellwig
The upcoming aio poll support would like to be able to complete the iocb inline from the cancellation context, but that would cause a lock order reversal. Add support for optionally moving the cancelation outside the context lock to avoid this reversal. Signed-off-by: Christoph Hellwig --- fs/a

[PATCH 23/31] aio: don't print the page size at boot time

2018-01-04 Thread Christoph Hellwig
The page size is in no way related to the aio code, and printing it in the (debug) dmesg at every boot serves no purpose. Signed-off-by: Christoph Hellwig --- fs/aio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index a062d75109cb..03d59593912d 100644 --- a/fs/aio.c

[PATCH 27/31] aio: simplify cancellation

2018-01-04 Thread Christoph Hellwig
With the current aio code there is no need for the magic KIOCB_CANCELLED value, as a cancelation just kicks the driver to queue the completion ASAP, with all actual completion handling done in another thread. Given that both the completion path and cancelation take the context lock there is no need

[PATCH 13/31] net/sctp: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/sctp/sctp.h | 4 ++-- net/sctp/ipv6.c | 2 +- net/sctp/protocol.c | 2 +- net/sctp/socket.c | 4 +--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 608d123ef

[PATCH 22/31] timerfd: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/timerfd.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fs/timerfd.c b/fs/timerfd.c index 0510717f3a53..ee36bb5b2698 100644 --- a/fs/timerfd.c +++ b/fs/timerfd.c @@ -226,21 +226,20 @@ static int timerfd_release

[PATCH 16/31] net/nfc: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/nfc/llcp_sock.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c index 985909f105eb..11b05d0ed19b 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c @@ -549,16 +549,14 @@ stati

[PATCH 17/31] net/phonet: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/phonet/socket.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 7563b0ac8386..5b7b87c1a409 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -341,15 +341,13 @@ static i

[PATCH 10/31] net/atm: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/atm/common.c | 11 +++ net/atm/common.h | 2 +- net/atm/pvc.c| 2 +- net/atm/svc.c| 2 +- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/net/atm/common.c b/net/atm/common.c index 8f12f1c6fa14..427ef7f6779c 100644 --- a/n

[PATCH 21/31] eventfd: switch to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/eventfd.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/fs/eventfd.c b/fs/eventfd.c index 6318a9b57e53..2bbbf13cb816 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -114,14 +114,20 @@ static int eventfd_release(struct

[PATCH 14/31] net/bluetooth: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/bluetooth/bluetooth.h | 3 ++- net/bluetooth/af_bluetooth.c | 8 +++- net/bluetooth/l2cap_sock.c| 2 +- net/bluetooth/rfcomm/sock.c | 2 +- net/bluetooth/sco.c | 2 +- 5 files changed, 8 insertions(+), 9 deletio

[PATCH 05/31] net: remove sock_no_poll

2018-01-04 Thread Christoph Hellwig
Now that sock_poll handles a NULL ->poll or ->poll_mask there is no need for a stub. Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 1 - crypto/algif_hash.c | 2 -- crypto/algif_rng.c | 1 - drivers/isdn/mISDN/socket.c | 1 - drivers/net/ppp/pptp.c | 1 -

[PATCH 12/31] net/tipc: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/tipc/socket.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/net/tipc/socket.c b/net/tipc/socket.c index fcbd6489a8b5..87f8d59614d0 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -693,10 +693,9 @@ static int

aio poll, io_pgetevents and a new in-kernel poll API

2018-01-04 Thread Christoph Hellwig
Hi all, this series adds support for the IOCB_CMD_POLL operation to poll for the readyness of file descriptors using the aio subsystem. The API is based on patches that existed in RHAS2.1 and RHEL3, which means it already is supported by libaio. To implement the poll support efficiently new meth

[PATCH 02/31] fs: add new vfs_poll and file_can_poll helpers

2018-01-04 Thread Christoph Hellwig
These abstract out calls to the poll method in preparation for changes to those methods. Signed-off-by: Christoph Hellwig --- drivers/staging/comedi/drivers/serial2002.c | 4 ++-- drivers/vfio/virqfd.c | 2 +- drivers/vhost/vhost.c | 2 +- fs/eventp

[PATCH 08/31] net: convert datagram_poll users tp ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/isdn/mISDN/socket.c| 2 +- drivers/net/ppp/pppoe.c| 2 +- drivers/staging/irda/net/af_irda.c | 6 +++--- include/linux/skbuff.h | 4 ++-- include/net/udp.h | 2 +- net/appletalk/ddp.c

[PATCH 06/31] net/tcp: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/net/tcp.h | 3 +-- net/ipv4/af_inet.c | 3 ++- net/ipv4/tcp.c | 25 ++--- net/ipv6/af_inet6.c | 3 ++- 4 files changed, 11 insertions(+), 23 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index 50b21a49d

[PATCH 07/31] net/unix: convert to ->poll_mask

2018-01-04 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/unix/af_unix.c | 32 +--- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 6b7678df41e5..01f0d2318113 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -638,

<    5   6   7   8   9   10