eventfd: show the EFD_SEMAPHORE flag in fdinfo
authorWen Yang <wenyang.linux@foxmail.com>
Tue, 13 Jun 2023 17:01:22 +0000 (01:01 +0800)
committerChristian Brauner <brauner@kernel.org>
Thu, 15 Jun 2023 07:22:23 +0000 (09:22 +0200)
commit33d8b5d7824c7175ed968b8e89e6db3566e9c177
tree9e7c7d027b0c404952478d09c173f1e37f7b8fce
parent5c075c5b8fc4ebc34aac188be4eccc238521eb6f
eventfd: show the EFD_SEMAPHORE flag in fdinfo

The EFD_SEMAPHORE flag should be displayed in fdinfo,
as different value could affect the behavior of eventfd.

Suggested-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Wen Yang <wenyang.linux@foxmail.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dylan Yudaken <dylany@fb.com>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Eric Biggers <ebiggers@google.com>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Message-Id: <tencent_05B9CFEFE6B9BC2A9B3A27886A122A7D9205@qq.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/eventfd.c