From: Bart Van Assche Date: Thu, 8 Mar 2018 01:10:08 +0000 (-0800) Subject: iscsi: Use blk_queue_flag_set() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bc74c33eab7590abaf7c90563089a82f62667823;p=openwrt%2Fstaging%2Fblogic.git iscsi: Use blk_queue_flag_set() Use blk_queue_flag_set() instead of open-coding this function. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Ming Lei Acked-by: Martin K. Petersen Reviewed-by: Johannes Thumshirn Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 6198559abbd8..07b54dfebccf 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -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; }