Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F53AC07E85 for ; Tue, 11 Dec 2018 11:49:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 433942081B for ; Tue, 11 Dec 2018 11:49:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 433942081B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726170AbeLKLtp (ORCPT ); Tue, 11 Dec 2018 06:49:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37618 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbeLKLtp (ORCPT ); Tue, 11 Dec 2018 06:49:45 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 10612368E7; Tue, 11 Dec 2018 11:49:45 +0000 (UTC) Received: from [172.16.176.1] (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB3B25D977; Tue, 11 Dec 2018 11:49:44 +0000 (UTC) From: "Benjamin Coddington" To: "Cui, =?utf-8?b?WXVlL+W0lCDmgqY=?=" Cc: linux-nfs@vger.kernel.org Subject: Re: test nfstest_pnfs in no pnfs env, nfs server crashes Date: Tue, 11 Dec 2018 06:49:36 -0500 Message-ID: <82321E16-1ACE-4D47-ABB7-44B327F74CAA@redhat.com> In-Reply-To: <307436e3-ef67-fc19-c172-9adfb443c4dd@cn.fujitsu.com> References: <307436e3-ef67-fc19-c172-9adfb443c4dd@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 11 Dec 2018 11:49:45 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This is not a crash, but a WARN_ON which was cleaned up in upstream commit 8163496e78db nfsd: don't advertise a SCSI layout for an unsupported request_queue RHEL 8.0 beta doesn't have that commit yet, but it will eventually make it into RHEL8.. you can safely ignore that warning for now. Ben On 11 Dec 2018, at 1:13, Cui, Yue/崔 悦 wrote: > when I tested nfstest_pnfs with“pnfs”option in /etc/exports (no > pnfs env), nfs server crashes: > > test step: > > 1. # cat /etc/exports > > /nfsroot*(rw,insecure,no_subtree_check,no_root_squash,pnfs,fsid=1) > > 2,   # ./nfstest_pnfs --nfsversion=4.1  -e /nfsroot --server > > environment: > >   rhel8.0beta(4.18.0-32.el8.x86_64) > > error message: > > [  118.257524] WARNING: CPU: 7 PID: 1152 at fs/nfsd/blocklayout.c:232 > nfsd4_scsi_proc_getdeviceinfo+0x1ca/0x3b0 [nfsd] > [  118.257528] Modules linked in: snd_hda_codec_generic snd_hda_intel > snd_hda_codec snd_hda_core crct10dif_pclmul crc32_pclmul snd_hwdep > ghash_clmulni_intel snd_pcm snd_timer sg snd soundcore i2c_piix4 > virtio_balloon pcspkr joydev nfsd auth_rpcgss nfs_acl lockd grace > sunrpc ip_tables xfs libcrc32c sr_mod sd_mod cdrom ata_generic qxl > drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm > ata_piix drm libata crc32c_intel virtio_net serio_raw virtio_console > net_failover failover dm_mirror dm_region_hash dm_log dm_mod > [  118.257596] CPU: 7 PID: 1152 Comm: nfsd Kdump: loaded Not tainted > 4.18.0-32.el8.x86_64 #1 > [  118.257596] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011 > [  118.257612] RIP: 0010:nfsd4_scsi_proc_getdeviceinfo+0x1ca/0x3b0 > [nfsd] > [  118.257614] Code: 39 00 00 4c 89 ff 48 89 34 24 e8 61 6b 9a c1 48 > 89 ef e8 49 aa 85 c1 48 8b 34 24 c7 04 24 00 00 00 00 48 89 f3 e9 e6 > fe ff ff <0f> 0b b8 ea ff ff ff 48 83 c4 08 89 c7 5b 5d 41 5c 41 5d 41 > 5e 41 > [  118.257615] RSP: 0018:ffffb348027cbd70 EFLAGS: 00010246 > [  118.257616] RAX: 0000000004120800 RBX: 00000000000000fc RCX: > 0000000000000000 > [  118.257618] RDX: 00000000b25822a2 RSI: 0000000000000000 RDI: > ffff9c0e87c03080 > [  118.257621] RBP: ffff9c1031708240 R08: ffff9c10359a7140 R09: > ffff9c0e87c03080 > [  118.257622] R10: ffffe4730ad650c0 R11: ffff9c10331e5a00 R12: > ffff9c102fb32000 > [  118.257623] R13: ffff9c1032b96600 R14: ffff9c102d72aff8 R15: > 0000000000000000 > [  118.257638] FS:  0000000000000000(0000) GS:ffff9c1035980000(0000) > knlGS:0000000000000000 > [  118.257639] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [  118.257640] CR2: 00007f60683e61c4 CR3: 00000002b17ee000 CR4: > 00000000001406e0 > [  118.257647] Call Trace: > [  118.257684]  nfsd4_getdeviceinfo+0x9b/0x130 [nfsd] > [  118.257693]  nfsd4_proc_compound+0x33e/0x640 [nfsd] > [  118.257701]  ? nfsd4_decode_compound.constprop.50+0x3b2/0x460 > [nfsd] > [  118.257707]  nfsd_dispatch+0x9e/0x210 [nfsd] > [  118.257724]  svc_process_common+0x46e/0x6c0 [sunrpc] > [  118.257731]  ? nfsd_destroy+0x50/0x50 [nfsd] > [  118.257754]  svc_process+0xb7/0xf0 [sunrpc] > [  118.257760]  nfsd+0xe3/0x140 [nfsd] > [  118.257784]  kthread+0x112/0x130 > [  118.257790]  ? kthread_bind+0x30/0x30 > [  118.257804]  ret_from_fork+0x35/0x40 > [  118.257810] ---[ end trace bfda1308b0b23ec9 ]---