From patchwork Thu Mar 8 01:10:08 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: 10265763 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 C43C56055B for ; Thu, 8 Mar 2018 01:10:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6B86295F2 for ; Thu, 8 Mar 2018 01:10:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB4E4295F4; Thu, 8 Mar 2018 01:10:21 +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 63810295F2 for ; Thu, 8 Mar 2018 01:10:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755140AbeCHBKT (ORCPT ); Wed, 7 Mar 2018 20:10:19 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:51958 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755138AbeCHBKP (ORCPT ); Wed, 7 Mar 2018 20:10:15 -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=1520471415; x=1552007415; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=tZjEDoPTDQtiwlGrAi4KCB3kPu2qjY55ozlW7hFIOrs=; b=pdWcsjS4rGDUxE8HKOagm2rEDvApzG0cqbJVRIn2TM7/Cc6QPNxx906Q MRgNLMS6r2bMibo0YgM4gycwOzBwVh6VHj5fFRKV3XQf9A/D3LRAF0EAL /yHdSdGAyYiSF+4gEBetIhYHHdCMAom9GtbDCR2uz2eGBaoP+0UHnxLbV 5eAoJ1EMtb6G+nZLoRazedULNw6P7aP+Wdpph9BRs/cN1LJqNHcoOa2MJ YljhJwIbWrFJiqiSv/Zp7IRBUudred5RD7ih9xRbaIx51XanOg1cIOuAA S8KkF3UCNX30m5cJ1gznBFY4rdOEfLxv0m6IMQc0oz0DozZCtK61HX7ip g==; X-IronPort-AV: E=Sophos;i="5.47,438,1515427200"; d="scan'208";a="72999163" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 08 Mar 2018 09:10:14 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 07 Mar 2018 17:04:05 -0800 Received: from thinkpad-bart.sdcorp.global.sandisk.com (HELO thinkpad-bart.int.fusionio.com) ([10.11.171.236]) by uls-op-cesaip02.wdc.com with ESMTP; 07 Mar 2018 17:10:15 -0800 From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Hannes Reinecke , Ming Lei Subject: [PATCH v2 07/11] iscsi: Use blk_queue_flag_set() Date: Wed, 7 Mar 2018 17:10:08 -0800 Message-Id: <20180308011012.31522-8-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180308011012.31522-1-bart.vanassche@wdc.com> References: <20180308011012.31522-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 Acked-by: Martin K. Petersen Reviewed-by: Johannes Thumshirn Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Ming Lei --- 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; }