From patchwork Wed Feb 28 19:28:20 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: 10249457 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 DCCFD60594 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 C88DB28D97 for ; Wed, 28 Feb 2018 19:28:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD6D028D9F; 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 1EDB728E6A for ; Wed, 28 Feb 2018 19:28:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933071AbeB1T2c (ORCPT ); Wed, 28 Feb 2018 14:28:32 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:65085 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933516AbeB1T21 (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=UFBJkcTOXAFv1nucF7eO8I3AoXK2gj6D9zbNcuRtYqc=; b=iNS5h1Is+7k9fW6mSLae1ccUacq/WQwiTFgNB+z+BPGBvRLGRniNbVS+ vvigsb7rdrKE8NrMtPhSBMJLZM8P4yKSiOg/sifozXE/1hA9SC5hPFplQ OMnQd7QGWfEePuc3GXiyq9FRblN/IAxF08rgwRqf4l+Bv1a0doINwqzKJ S8Cipr/Jzu7l5tckfFnaihWjd6brDrm7oIG3qAct9NxYAykWZQJk6elB4 d7u5RDuhlak7lewwAhQBgNz96268tmRHwALLcF+ltxB5qcMg2F3unDBwq A0w2YclECRn8esv4U8zL5VSFjz7+cb5bSVAXcawZq37SBP+dA7pqtO6II g==; X-IronPort-AV: E=Sophos;i="5.47,406,1515427200"; d="scan'208";a="73137005" 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:26 -0800 From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , "Nicholas A . Bellinger" , Hannes Reinecke , Johannes Thumshirn , Ming Lei Subject: [PATCH 08/11] target/tcm_loop: Use blk_queue_flag_set() Date: Wed, 28 Feb 2018 11:28:20 -0800 Message-Id: <20180228192823.5191-9-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: Nicholas A. Bellinger Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Johannes Thumshirn Cc: Ming Lei Reviewed-by: Johannes Thumshirn Reviewed-by: Martin K. Petersen --- drivers/target/loopback/tcm_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 9cd4ffe76c07..60d5b918c4ac 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c @@ -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; }