block: use atomic bitops for ->queue_flags
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Nov 2018 16:02:07 +0000 (17:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Nov 2018 19:13:19 +0000 (12:13 -0700)
commit57d74df90783f6a6b3e79dfdd2a567ce5db3b790
tree8ad00d0426916e945f3c7dec608d786972596260
parent39795d6534c6e698c4f9c065e0a5f4a2e5af7543
block: use atomic bitops for ->queue_flags

->queue_flags is generally not set or cleared in the fast path, and also
generally set or cleared one flag at a time.  Make use of the normal
atomic bitops for it so that we don't need to take the queue_lock,
which is otherwise mostly unused in the core block layer now.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c
block/blk-settings.c
block/blk-sysfs.c
block/blk.h
include/linux/blkdev.h