Skip to content

Commit bf3a2b3

Browse files
KAGA-KOKOaxboe
authored andcommitted
target/tcm_loop: Use blk_queue_flag_set()
Use blk_queue_flag_set() instead of open-coding this function. Cc: Nicholas A. Bellinger <nab@linux-iscsi.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Cc: Ming Lei <ming.lei@redhat.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent bc74c33 commit bf3a2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/loopback/tcm_loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static int tcm_loop_target_reset(struct scsi_cmnd *sc)
309309

310310
static int tcm_loop_slave_alloc(struct scsi_device *sd)
311311
{
312-
set_bit(QUEUE_FLAG_BIDI, &sd->request_queue->queue_flags);
312+
blk_queue_flag_set(QUEUE_FLAG_BIDI, sd->request_queue);
313313
return 0;
314314
}
315315

0 commit comments

Comments
 (0)