From patchwork Sat Oct 29 08:08:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9403415 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 C0CBF60587 for ; Sat, 29 Oct 2016 08:29:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABA092A655 for ; Sat, 29 Oct 2016 08:29:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A00CC2A678; Sat, 29 Oct 2016 08:29:27 +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 48AE12A672 for ; Sat, 29 Oct 2016 08:29:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934262AbcJ2I3Y (ORCPT ); Sat, 29 Oct 2016 04:29:24 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34606 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756966AbcJ2INx (ORCPT ); Sat, 29 Oct 2016 04:13:53 -0400 Received: by mail-pf0-f196.google.com with SMTP id u84so3378606pfj.1; Sat, 29 Oct 2016 01:13:53 -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=LmE+J+6O6YRNPQS4hzXmsimPg7FY2lMppGDo+V8cxLU=; b=rcCmLQdUGF/aEK2wLcHxDeFb9AyY7Ynj7TbJFbcVbvxQSSjCNMtd0/zCRCBFxdDs7I U4QzjKXmusoYWelOI+XNECqSiqdnTvuRFJmHfdLwFntQN3adFJeKWnM1XoFBP1nVYuP5 7ahLj4zYg3IUSjIQ3duvZIG5IR7Havq8yuDf27vxj/dKb9imjrv7YAZpT7fZvZBQyqaa HNEQhgTwN0stvhiDzj0wA3eyKVPQGMW1X3Z6lRzjZpOze1wlxS4Ugm2znSSKep/towng xdVlvbFOQR4Ix6LasyYwwyY9AMfIjczvWXTGgaSU3ExHGjDbtrLmobKirpIMfUE+z+2t SDow== 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=LmE+J+6O6YRNPQS4hzXmsimPg7FY2lMppGDo+V8cxLU=; b=PmiRxgpf7dTu+/2JIBY+MbIChmBTnrfAtV6pIcSY0wBBibVb3K852CbXrcZnqbOcls RzqEUfYIbAgqn9Yupbkp8x2ijeHHMne9YibNUP5CHNpvng+KEX7cwtphHYtXMblaRap/ 0z8QjwozMZ3XBmuCy1hmVkYp9/M8/qOGrIS/06r/5DJcVYnXGRRFCwXGevILekAvqctv f3lm4AT8aQdwbfbmcHu5nkNA7AV8tHu04rsZTohzZEaBCs1CU5HLn/M1Twint4X9GT9W QnNlTEk9cDwrdLFMfrGpfRKhRhBBTgXwBozWYQes00VTKKwfGOHgk87yt+zw5dpUqDEt qNQA== X-Gm-Message-State: ABUngvcG5sTXYSkatUoUyLeaMsJ1be7Ul9WJa9QeUApx2YwqZ+Oxf1TAwFlTYz+T4+uVTQ== X-Received: by 10.98.14.197 with SMTP id 66mr31579358pfo.123.1477728832943; Sat, 29 Oct 2016 01:13:52 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id z3sm23533359paw.48.2016.10.29.01.13.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:13:52 -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 , Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org (open list:BTRFS FILE SYSTEM) Subject: [PATCH 26/60] btrfs: set NO_MP for request queues behind BTRFS Date: Sat, 29 Oct 2016 16:08:25 +0800 Message-Id: <1477728600-12938-27-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-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are lots of direct access to .bi_vcnt & .bi_io_vec of bio, and it isn't ready to support multipage bvecs for BTRFS, so set NO_MP for these request queues. Signed-off-by: Ming Lei --- fs/btrfs/volumes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 71a60cc01451..2e7237a3b84d 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1011,6 +1011,9 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices, if (blk_queue_discard(q)) device->can_discard = 1; + /* BTRFS isn't ready to support multipage bvecs */ + set_bit(QUEUE_FLAG_NO_MP, &q->queue_flags); + device->bdev = bdev; device->in_fs_metadata = 0; device->mode = flags;