Revert "io_uring: mark io_uring_fops/io_op_defs as __read_mostly"
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Oct 2020 21:01:40 +0000 (15:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Oct 2020 17:50:08 +0000 (11:50 -0600)
commit3d8a5a80f36d772954a16e1bc4e997250f8f9379
tree2bc01cf50f6fe4fa564d3211e304eeeabb8c6aca
parent2c4b40a91954a54552151b95aeaf98bb4c8064bf
Revert "io_uring: mark io_uring_fops/io_op_defs as __read_mostly"

This reverts commit 738277adc81929b3e7c9b63fec6693868cc5f931.

This change didn't make a lot of sense, and as Linus reports, it actually
fails on clang:

   /tmp/io_uring-dd40c4.s:26476: Warning: ignoring changed section
   attributes for .data..read_mostly

The arrays are already marked const so, by definition, they are not
just read-mostly, they are read-only.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c