From: Bart Van Assche Date: Thu, 8 Mar 2018 01:10:09 +0000 (-0800) Subject: target/tcm_loop: Use blk_queue_flag_set() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bf3a2b310ea35ae2f641bb734892574bd820d4a5;p=openwrt%2Fstaging%2Fblogic.git target/tcm_loop: Use blk_queue_flag_set() Use blk_queue_flag_set() instead of open-coding this function. Cc: Nicholas A. Bellinger Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Ming Lei Reviewed-by: Johannes Thumshirn Reviewed-by: Martin K. Petersen Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 9cd4ffe76c07..60d5b918c4ac 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c @@ -309,7 +309,7 @@ static int tcm_loop_target_reset(struct scsi_cmnd *sc) static int tcm_loop_slave_alloc(struct scsi_device *sd) { - set_bit(QUEUE_FLAG_BIDI, &sd->request_queue->queue_flags); + blk_queue_flag_set(QUEUE_FLAG_BIDI, sd->request_queue); return 0; }