diff options
author | 2018-03-07 17:10:05 -0800 | |
---|---|---|
committer | 2018-03-08 14:13:48 -0700 | |
commit | 7dfdbc7367f6f789715cab2cb484b78ab45e9f3e (patch) | |
tree | 12bb8fc5fe749d47d9948f2a2b502a021fe9dd1d /drivers/mmc/core/queue.c | |
parent | block: Introduce blk_queue_flag_{set,clear,test_and_{set,clear}}() (diff) | |
download | linux-dev-7dfdbc7367f6f789715cab2cb484b78ab45e9f3e.tar.xz linux-dev-7dfdbc7367f6f789715cab2cb484b78ab45e9f3e.zip |
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>
Diffstat (limited to 'drivers/mmc/core/queue.c')
0 files changed, 0 insertions, 0 deletions