From patchwork Sat Oct 29 08:08:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9403429 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 3280F60587 for ; Sat, 29 Oct 2016 08:30:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FCAB2A68A for ; Sat, 29 Oct 2016 08:30:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 149392A692; Sat, 29 Oct 2016 08:30:22 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 A2BAD2A68A for ; Sat, 29 Oct 2016 08:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942728AbcJ2IaD (ORCPT ); Sat, 29 Oct 2016 04:30:03 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34587 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753038AbcJ2INt (ORCPT ); Sat, 29 Oct 2016 04:13:49 -0400 Received: by mail-pf0-f196.google.com with SMTP id u84so3378391pfj.1; Sat, 29 Oct 2016 01:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9B0e9uAQUYC/3smgrPTdxSMmK13Q22ZsPZHIBOC7Dn0=; b=wb9egdNplBaHVqYroAroiy0LKfzUvUJzOmpM23tPq4EMy705xJZQHZnrh2yylBFQ0c nBncgxqsKRoh9MS5skbMR721pH8kR0ip1gXtt2/ziODQMJPFAmHWiGM+l6BGG6VHlBE9 1QH1ldkQz1p631e04btzo5W1V1dJk/V5ThUZGhOKcFpk1OylMkB0mlOFXwSpi2qQkMsp aquFW6D2IhnCxBzcgq4+mLf4aQOZoMlhgtcHQRkyRqDnfSZyp7l/czvCTNYu9JSX8yA8 eXP4ccyXS8lWvBGF3YR9nxWTpz59/tsYiSN1WgwBJWKcktFMp+78Not4rvy/TqIsDRxe NqRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9B0e9uAQUYC/3smgrPTdxSMmK13Q22ZsPZHIBOC7Dn0=; b=i0ky/D7I6ZS1PFrfC8vl6CpHA5BR8YZh8ei7/zXjI+HVLiHaa16ThnXpsDQyZhyymT 3oTEtws/+m25MyQZzRv1qnSRNEMZPkn+C4LvQkdpVCsPKMWE0xPShMGwKZpAlbq51mvi m97Fw/trW8g7x1Epc4UjWvIVRl3Fco9BOnROqYfAkhNETtyipvDNn49wx+5qR8iyKzF7 zCBst0uKqLQId9bjHvqP5FuvGDXJ4rpg1z15v3Yp7Scfh0nZRqhJjkrAW9HR0CA/W4EO MMy0LWJ4aP60OETXnbDuHGcHb3IKjlnBcy37oXCfx37LfMss8i/Sf9UkGdGefQOniOhl umXw== X-Gm-Message-State: ABUngve43VWmzgScOBn9PjYjZOcuXxWxPAo0eFxiA0ZBYBHDvEMSzVD/l/pEhnIu5WhPOQ== X-Received: by 10.98.5.195 with SMTP id 186mr31472986pff.117.1477728828583; Sat, 29 Oct 2016 01:13:48 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id ht5sm23565583pad.16.2016.10.29.01.13.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:13:48 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , "Kirill A . Shutemov" , Ming Lei , Jiri Kosina Subject: [PATCH 25/60] block: pktcdvd: set NO_MP for pktcdvd request queue Date: Sat, 29 Oct 2016 16:08:24 +0800 Message-Id: <1477728600-12938-26-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> References: <1477728600-12938-1-git-send-email-tom.leiming@gmail.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 At least pkt_start_write() operates on the bvec table directly, it isn't ready to enable multipage bvec yet, so mark the flag now. Signed-off-by: Ming Lei --- drivers/block/pktcdvd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 817d2cc17d01..403c93b46ea3 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -2518,6 +2518,9 @@ static void pkt_init_queue(struct pktcdvd_device *pd) blk_queue_logical_block_size(q, CD_FRAMESIZE); blk_queue_max_hw_sectors(q, PACKET_MAX_SECTORS); q->queuedata = pd; + + /* not ready for multipage bvec yet */ + set_bit(QUEUE_FLAG_NO_MP, &q->queue_flags); } static int pkt_seq_show(struct seq_file *m, void *p)