1. 31 1月, 2020 1 次提交
    • J
      io_uring: add ->show_fdinfo() for the io_uring file descriptor · 87ce955b
      Jens Axboe 提交于
      It can be hard to know exactly what is registered with the ring.
      Especially for credentials, it'd be handy to be able to see which
      ones are registered, what personalities they have, and what the ID
      of each of them is.
      
      This adds support for showing information registered in the ring from
      the fdinfo of the io_uring fd. Here's an example from a test case that
      registers 4 files (two of them sparse), 4 buffers, and 2 personalities:
      
      pos:	0
      flags:	02000002
      mnt_id:	14
      UserFiles:	4
          0: file-no-1
          1: file-no-2
          2: <none>
          3: <none>
      UserBufs:	4
          0: 0x563817c46000/128
          1: 0x563817c47000/256
          2: 0x563817c48000/512
          3: 0x563817c49000/1024
      Personalities:
          1
      	Uid:	0		0		0		0
      	Gid:	0		0		0		0
      	Groups:	0
      	CapEff:	0000003fffffffff
          2
      	Uid:	0		0		0		0
      	Gid:	0		0		0		0
      	Groups:	0
      	CapEff:	0000003fffffffff
      Suggested-by: NJann Horn <jannh@google.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      87ce955b
  2. 30 1月, 2020 2 次提交
    • J
      io_uring: add support for epoll_ctl(2) · 3e4827b0
      Jens Axboe 提交于
      This adds IORING_OP_EPOLL_CTL, which can perform the same work as the
      epoll_ctl(2) system call.
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      3e4827b0
    • J
      io_uring: fix linked command file table usage · f86cd20c
      Jens Axboe 提交于
      We're not consistent in how the file table is grabbed and assigned if we
      have a command linked that requires the use of it.
      
      Add ->file_table to the io_op_defs[] array, and use that to determine
      when to grab the table instead of having the handlers set it if they
      need to defer. This also means we can kill the IO_WQ_WORK_NEEDS_FILES
      flag. We always initialize work->files, so io-wq can just check for
      that.
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      f86cd20c
  3. 29 1月, 2020 4 次提交
  4. 28 1月, 2020 3 次提交
  5. 27 1月, 2020 2 次提交
  6. 23 1月, 2020 2 次提交
  7. 21 1月, 2020 26 次提交