Skip to content

Commit

Permalink
target/tcm_loop: Use blk_queue_flag_set()
Browse files Browse the repository at this point in the history
Use blk_queue_flag_set() instead of open-coding this function.

Cc: Nicholas A. Bellinger <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Ming Lei <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
KAGA-KOKO authored and axboe committed Mar 8, 2018
1 parent bc74c33 commit bf3a2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/loopback/tcm_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bf3a2b3

Please sign in to comment.