]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iscsi: Use blk_queue_flag_set()
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 8 Mar 2018 01:10:08 +0000 (17:10 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Mar 2018 21:13:48 +0000 (14:13 -0700)
Use blk_queue_flag_set() instead of open-coding this function.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Ming Lei <ming.lei@redhat.com>
Acked-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>
drivers/scsi/iscsi_tcp.c

index 6198559abbd8f8e9ae9293a03ea511726946f953..07b54dfebccf0208cf82976bdbe4a77cf2194d3b 100644 (file)
@@ -948,7 +948,7 @@ static umode_t iscsi_sw_tcp_attr_is_visible(int param_type, int param)
 
 static int iscsi_sw_tcp_slave_alloc(struct scsi_device *sdev)
 {
-       set_bit(QUEUE_FLAG_BIDI, &sdev->request_queue->queue_flags);
+       blk_queue_flag_set(QUEUE_FLAG_BIDI, sdev->request_queue);
        return 0;
 }