OSDN Git Service

af_unix: Support POLLPRI for OOB.
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>
Thu, 17 Mar 2022 03:08:09 +0000 (12:08 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2022 13:30:52 +0000 (13:30 +0000)
commitd9a232d435dcc966738b0f414a86f7edf4f4c8c4
treee3b8f4e40775f0b6d0c8113991565c7d77bee4f7
parente82025c623e2bf04d162bafceb66a59115814479
af_unix: Support POLLPRI for OOB.

The commit 314001f0bf92 ("af_unix: Add OOB support") introduced OOB for
AF_UNIX, but it lacks some changes for POLLPRI.  Let's add the missing
piece.

In the selftest, normal datagrams are sent followed by OOB data, so this
commit replaces `POLLIN | POLLPRI` with just `POLLPRI` in the first test
case.

Fixes: 314001f0bf92 ("af_unix: Add OOB support")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c
tools/testing/selftests/net/af_unix/test_unix_oob.c