]> git.baikalelectronics.ru Git - kernel.git/commit
block: Protect queue flag changes with the queue lock
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 8 Mar 2018 01:10:05 +0000 (17:10 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Mar 2018 21:13:48 +0000 (14:13 -0700)
commit7efdf0217d70ef261f7baaf46ae46e4894164edb
tree12bb8fc5fe749d47d9948f2a2b502a021fe9dd1d
parent54fa83af546c2f9e10d0e012ed1c7f46d5af7e52
block: Protect queue flag changes with the queue lock

Since the queue flags may be changed concurrently from multiple
contexts after a queue becomes visible in sysfs, make these changes
safe by protecting these with the queue lock.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk-stat.c