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>
Showing
- block/blk-core.c 7 additions, 47 deletionsblock/blk-core.c
- block/blk-mq.c 1 addition, 1 deletionblock/blk-mq.c
- block/blk-settings.c 4 additions, 6 deletionsblock/blk-settings.c
- block/blk-sysfs.c 12 additions, 16 deletionsblock/blk-sysfs.c
- block/blk.h 0 additions, 56 deletionsblock/blk.h
- include/linux/blkdev.h 0 additions, 1 deletioninclude/linux/blkdev.h
Loading
Please register or sign in to comment