From patchwork Thu Mar 8 01:10:09 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: 10265761 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 D3BE76055B for ; Thu, 8 Mar 2018 01:10:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6193295F2 for ; Thu, 8 Mar 2018 01:10:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAA4B295F4; Thu, 8 Mar 2018 01:10:20 +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 36FF3295F2 for ; Thu, 8 Mar 2018 01:10:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754741AbeCHBKS (ORCPT ); Wed, 7 Mar 2018 20:10:18 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:22142 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755140AbeCHBKQ (ORCPT ); Wed, 7 Mar 2018 20:10:16 -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=1520471416; x=1552007416; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=RY9o2W2GoaNFg7t7d2/FQKClJg4BizZB75qICX7CM+Q=; b=TXK1myOOmW+8sqfozw3mWLow4m5cyyTiz15gEn//Q86hVyT4PcAhjAgS mcBi0oQ6aNAoLSMiXUPb5geRsRg5Y73DmjWLtEi8hnLo/1GY0Hx2Nlo9P OuzyIMG/lMfMPROnIkVOZsBn/BTb2KV/gQfRiDEKAy56xYSYLOrXpeIIs aRwOr7INCmO/ArVRLaAF+QJP4DLFSqANksESqn1mIZYbshmxzVYD0vaXK v6G/joirX66wwsP3fHnZBKbc4S9LDZ9NQwYzlPxuHBncAtmW5eM57vWof 3VfM2FR/lAAWDQbmxjr2Y/Jm88EGY6r9tZBlDchFRHP2EITvi/YEs7AvH w==; X-IronPort-AV: E=Sophos;i="5.47,438,1515427200"; d="scan'208";a="72999164" 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 , "Nicholas A . Bellinger" , Hannes Reinecke , Ming Lei Subject: [PATCH v2 08/11] target/tcm_loop: Use blk_queue_flag_set() Date: Wed, 7 Mar 2018 17:10:09 -0800 Message-Id: <20180308011012.31522-9-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 Reviewed-by: Johannes Thumshirn Reviewed-by: Martin K. Petersen Cc: Nicholas A. Bellinger Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Ming Lei --- 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; }