From nobody Wed Dec 29 00:49:15 2021 X-Original-To: scsi@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 125CD190A5CF for ; Wed, 29 Dec 2021 00:49:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JNt8D6Nvlz4rwc for ; Wed, 29 Dec 2021 00:49:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BB86C1B79C for ; Wed, 29 Dec 2021 00:49:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BT0nGHO089933 for ; Wed, 29 Dec 2021 00:49:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BT0nG3u089932 for scsi@FreeBSD.org; Wed, 29 Dec 2021 00:49:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: scsi@FreeBSD.org Subject: [Bug 240917] panic: (scsi_da.c:2128, 12.1-BETA1) _mtx_lock_sleep: recursed on non-recursive mutex CAM device lock Date: Wed, 29 Dec 2021 00:49:15 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: panic X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: SCSI subsystem List-Archive: https://lists.freebsd.org/archives/freebsd-scsi List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640738956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zhNIYZ0kbo2bSteqwsj8Y7MRIbNU/hAL7hesjHTf+ww=; b=L9I2cc8LKnC8UqX4XurKxdiQGa1djPvIH3GDMpiGP3wsBuxFIcuZmt1ejz6sfEh8MXwnBz QX/QWdcTf09yhEp84/NZYzvlpnmO2n5IqfW6Eq/m8did1wcTEqHzmMZLIycnr+QatAWLFh 58ogNDYTOU0LW96/UnZC4yKrxWVSYQOpHlOFPKAXk3NUgnz98UT2RQGwGzUtesixNld8dh Gduu+0a1hUVLIU52PamLsY1TBacu/w9DrK8kxFQyzAS5vzKZS7bU4Sxfcd6dCzqglNWuDQ 3yc5CIDYfMqwqnJRMXer+7nv7LGCD+umnccLXNMLcOFTK8NaMgAu5iMElloDuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640738956; a=rsa-sha256; cv=none; b=WI8lB/NFqZmbWijUzmePaTHHVROp3G2v/sxQkQ88ghtAFBAdUs69+QVllCx0Fmnt9Fh/Yr Xr3X786NJDHy2moltzkUW9rlVJqiUAC8ojEwmfu2Sms+mBzU2IFJkHmTBsejnZ5jvwo1k/ Cyewi1M9CKdapRXj/whOLg+Qs/4c4YEpm8H14B4MgwKUBdXxQmHVNAk0gLSfl7zEfpnQFI cZn5SEl7XhrNa/QyIhx65Ib4jcD892PMlsSn38B8yxS8Eq8Ma7pOz+9inzkE5fk8JVjF1R GVDwY4GUdd5f0unKIVxLQabQzaEYYd3E7U4/wd3SI2S/+55vEXc0kOUsqTDb5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240917 --- Comment #4 from Alan Somers --- I can't reproduce it on BHyve using virtual block devices, simply because I can't make any virtual block device whose size I can change and can reprobe: * virtio-blk: not a CAM device, so I can't "camcontrol reprobe" it * nvme: not a CAM device, so I can't "camcontrol reprobe" it * virtio-scsi: not supported by vm-bhyve. * ahci-hd: bhyve doesn't seem to notice when the zvol gets expanded Instead, I reproduced it with iSCSI. The iSCSI server is physical (but probably could be a VM): $ sudo zfs create -V 1g -o volmode=3Ddev zroot/test/disk0 $ # write the following to /etc/ctl.conf auth-group { disk { auth-type =3D none initiator-portal =3D [ 192.168.0.0/24 ] } } portal-group { pg0 { discovery-auth-group no-authentication listen 0.0.0.0 listen [::] } } lun { "disk0" { blocksize =3D 4096 device-id =3D "disk0" path =3D "/dev/zvol/zroot/test/disk0" } } target { "iqn.2018-10.mydomain.myhost:disk0" { auth-group =3D disk portal-group { name =3D pg0 } lun =3D [ { number =3D 0, name =3D disk0 }, ] } } $ sudo sysrc ctld_flags=3D"-u" $ sudo service ctld onestart Then do the following on the client $ sudo service iscsid onestart $ sudo iscsictl -A -d myhost.mydomain $ sudo iscsictl -L # to see the device name Back on the server, do the following: $ sudo zfs set volsize=3D2g zroot/test/disk0 $ sudo service ctld onereload Then do the following on the client $ sudo camcontrol reprobe da0 --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=