path: root/block/bsg-lib.c
diff options
authorBart Van Assche <>2018-03-07 17:10:10 -0800
committerJens Axboe <>2018-03-08 14:13:48 -0700
commit8b904b5b6b58b9a29dcf3f82d936d9e7fd69fda6 (patch)
treec5ba5ff20820c410a422e7461f400b0546111916 /block/bsg-lib.c
parentbf3a2b310ea35ae2f641bb734892574bd820d4a5 (diff)
block: Use blk_queue_flag_*() in drivers instead of queue_flag_*()
This patch has been generated as follows: for verb in set_unlocked clear_unlocked set clear; do replace-in-files queue_flag_${verb} blk_queue_flag_${verb%_unlocked} \ $(git grep -lw queue_flag_${verb} drivers block/bsg*) done Except for protecting all queue flag changes with the queue lock this patch does not change any functionality. Cc: Mike Snitzer <> Cc: Shaohua Li <> Cc: Christoph Hellwig <> Cc: Hannes Reinecke <> Cc: Ming Lei <> Signed-off-by: Bart Van Assche <> Reviewed-by: Martin K. Petersen <> Reviewed-by: Johannes Thumshirn <> Acked-by: Martin K. Petersen <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/bsg-lib.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/block/bsg-lib.c b/block/bsg-lib.c
index 1474153..b4fe1a4 100644
--- a/block/bsg-lib.c
+++ b/block/bsg-lib.c
@@ -275,8 +275,8 @@ struct request_queue *bsg_setup_queue(struct device *dev, const char *name,
q->queuedata = dev;
q->bsg_job_fn = job_fn;
- queue_flag_set_unlocked(QUEUE_FLAG_BIDI, q);
- queue_flag_set_unlocked(QUEUE_FLAG_SCSI_PASSTHROUGH, q);
+ blk_queue_flag_set(QUEUE_FLAG_BIDI, q);
+ blk_queue_flag_set(QUEUE_FLAG_SCSI_PASSTHROUGH, q);
blk_queue_softirq_done(q, bsg_softirq_done);
blk_queue_rq_timeout(q, BLK_DEFAULT_SG_TIMEOUT);