From patchwork Wed Feb 28 19:28:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10249455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8005060211 for ; Wed, 28 Feb 2018 19:28:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C82928D97 for ; Wed, 28 Feb 2018 19:28:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6165028E69; Wed, 28 Feb 2018 19:28:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD77428D97 for ; Wed, 28 Feb 2018 19:28:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933497AbeB1T2b (ORCPT ); Wed, 28 Feb 2018 14:28:31 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:62045 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933071AbeB1T21 (ORCPT ); Wed, 28 Feb 2018 14:28:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1519846108; x=1551382108; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=DkEcGk0tcRXKQiHGkBc9nvqlBHjmMgQOfmlBSu/NaRQ=; b=Bw4oFzIpPlS0oeHtUl0/ymgPtTQk1h0yOxmLBt9wlIwIS9RKW+GuXMRZ bA2vNkPlFiiLx2knxl5+WqiRSz4WGCk3NPG8PNCtwKDDkuW85mHrkU2b3 5m2pbI6t5WRpoG9Jn5VBEvxbj4jOwLqvDElGhvNxV3C/TgwIQ7aWTHwuG ieEmVJDc8Y48D5E5xaIReaM/Ny6PGTkTKDgWRgRJexOsXJ0lFPQFl1RL9 OxN0+vIIVkVVcvr3zADEArn83HySDhVjSbp6CsUXqgqmCFI79qczoSVT2 2ZQTAclXGMmh+1basWIS1FTXwM1Lw5UpiTbOCqjZQUBrktJ8gLc6oP5qZ Q==; X-IronPort-AV: E=Sophos;i="5.47,406,1515427200"; d="scan'208";a="73137003" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 01 Mar 2018 03:28:26 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 28 Feb 2018 11:22:31 -0800 Received: from thinkpad-bart.sdcorp.global.sandisk.com (HELO thinkpad-bart.int.fusionio.com) ([10.11.171.236]) by uls-op-cesaip01.wdc.com with ESMTP; 28 Feb 2018 11:28:25 -0800 From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , "Martin K . Petersen" , Hannes Reinecke , Johannes Thumshirn , Ming Lei Subject: [PATCH 07/11] iscsi: Use blk_queue_flag_set() Date: Wed, 28 Feb 2018 11:28:19 -0800 Message-Id: <20180228192823.5191-8-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180228192823.5191-1-bart.vanassche@wdc.com> References: <20180228192823.5191-1-bart.vanassche@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use blk_queue_flag_set() instead of open-coding this function. Signed-off-by: Bart Van Assche Cc: Martin K. Petersen Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Johannes Thumshirn Cc: Ming Lei Reviewed-by: Johannes Thumshirn Acked-by: Martin K. Petersen --- drivers/scsi/iscsi_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }