Leon Romanovsky
7922d3de4d
Revert "RDMA/core: Fix ib_qp_usecnt_dec() called when error"
This reverts commit 7c4a539ec3. which causes
to the following error in mlx4.
Destroy of kernel CQ shouldn't fail
WARNING: CPU: 4 PID: 18064 at include/rdma/ib_verbs.h:3936 mlx4_ib_dealloc_xrcd+0x12e/0x1b0 [mlx4_ib]
Modules linked in: bonding ib_ipoib ip_gre ipip tunnel4 geneve rdma_ucm nf_tables ib_umad mlx4_en mlx4_ib ib_uverbs mlx4_core ip6_gre gre ip6_tunnel tunnel6 iptable_raw openvswitch nsh rpcrdma ib_iser libiscsi scsi_transport_iscsi rdma_cm iw_cm ib_cm ib_core xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xt_addrtype iptable_nat nf_nat br_netfilter overlay fuse [last unloaded: mlx4_core]
CPU: 4 PID: 18064 Comm: ibv_xsrq_pingpo Not tainted 5.17.0-rc7_master_62c6ecb #1
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
RIP: 0010:mlx4_ib_dealloc_xrcd+0x12e/0x1b0 [mlx4_ib]
Code: 1e 93 08 00 40 80 fd 01 0f 87 fa f1 04 00 83 e5 01 0f 85 2b ff ff ff 48 c7 c7 20 4f b6 a0 c6 05 fd 92 08 00 01 e8 47 c9 82 e2 <0f> 0b e9 11 ff ff ff 0f b6 2d eb 92 08 00 40 80 fd 01 0f 87 b1 f1
RSP: 0018:ffff8881a4957750 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8881ac4b6800 RCX: 0000000000000000
RDX: 0000000000000027 RSI: 0000000000000004 RDI: ffffed103492aedc
RBP: 0000000000000000 R08: 0000000000000001 R09: ffff8884d2e378eb
R10: ffffed109a5c6f1d R11: 0000000000000001 R12: ffff888132620000
R13: ffff8881a4957a90 R14: ffff8881aa2d4000 R15: ffff8881a4957ad0
FS: 00007f0401747740(0000) GS:ffff8884d2e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f8ae036118 CR3: 000000012fe94005 CR4: 0000000000370ea0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ib_dealloc_xrcd_user+0xce/0x120 [ib_core]
ib_uverbs_dealloc_xrcd+0xad/0x210 [ib_uverbs]
uverbs_free_xrcd+0xe8/0x190 [ib_uverbs]
destroy_hw_idr_uobject+0x7a/0x130 [ib_uverbs]
uverbs_destroy_uobject+0x164/0x730 [ib_uverbs]
uobj_destroy+0x72/0xf0 [ib_uverbs]
ib_uverbs_cmd_verbs+0x19fb/0x3110 [ib_uverbs]
ib_uverbs_ioctl+0x169/0x260 [ib_uverbs]
__x64_sys_ioctl+0x856/0x1550
do_syscall_64+0x3d/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
Fixes: 7c4a539ec3 ("RDMA/core: Fix ib_qp_usecnt_dec() called when error")
Link: https://lore.kernel.org/r/74c11029adaf449b3b9228a77cc82f39e9e892c8.1646851220.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-03-14 20:39:21 -03:00
..
2022-01-14 16:02:28 +01:00
2022-01-22 11:28:23 +02:00
2022-01-21 18:39:16 +09:00
2022-01-13 12:50:48 +00:00
2022-01-22 08:33:35 +02:00
2022-01-23 06:20:44 +02:00
2022-01-18 10:05:48 +02:00
2022-01-16 08:08:11 +02:00
2022-01-22 08:33:35 +02:00
2022-01-22 08:33:35 +02:00
2022-01-21 09:16:11 +02:00
2022-01-10 13:53:16 +01:00
2022-01-06 15:51:13 +01:00
2022-01-06 18:31:33 +01:00
2022-01-05 18:31:17 +01:00
2022-01-18 10:05:48 +02:00
2022-01-04 17:29:31 -08:00
2022-01-15 20:37:06 +02:00
2022-01-18 14:03:34 +02:00
2022-01-16 06:52:38 +02:00
2022-01-10 11:45:23 -08:00
2022-01-19 19:37:44 -08:00
2022-01-20 17:38:23 +02:00
2022-01-23 06:20:44 +02:00
2022-01-21 15:10:02 +01:00
2022-01-16 15:53:00 +02:00
2022-01-23 06:20:44 +02:00
2022-01-18 10:05:48 +02:00
2022-01-13 02:05:50 +01:00
2022-01-23 06:20:44 +02:00
2022-03-14 20:39:21 -03:00
2022-01-17 08:27:55 +02:00
2022-01-18 10:05:48 +02:00
2022-01-13 09:05:29 -08:00
2022-01-12 16:59:22 -08:00
2022-01-22 08:33:35 +02:00
2022-01-13 11:19:07 -08:00
2022-01-12 15:46:11 -08:00
2022-01-23 06:20:44 +02:00
2022-01-11 11:35:28 -08:00
2022-01-10 10:33:52 -05:00
2022-01-12 11:11:34 -08:00
2022-01-16 08:08:11 +02:00
2022-01-23 06:20:44 +02:00
2022-01-14 15:08:36 +01:00
2022-02-03 15:22:03 -08:00
2022-01-12 14:17:45 +00:00
2022-01-17 08:14:18 +02:00
2022-01-22 08:33:37 +02:00
2022-01-18 10:05:48 +02:00
2022-01-12 10:35:23 -08:00
2022-01-22 09:52:17 +02:00
2022-01-22 11:28:23 +02:00
2022-01-23 06:20:44 +02:00
2022-01-16 08:08:11 +02:00
2022-01-13 09:05:29 -08:00
2022-01-14 16:02:28 +01:00
2022-01-12 10:56:08 -08:00
2022-01-22 08:33:37 +02:00
2022-01-22 08:33:37 +02:00
2022-01-11 11:26:57 -08:00
2022-01-06 12:18:08 +00:00
2022-01-20 13:25:01 +02:00
2022-01-07 13:36:35 +00:00
2022-01-03 11:40:45 -07:00
2022-01-10 08:32:37 -08:00
2022-01-18 10:05:48 +02:00
2022-01-16 23:50:34 +01:00
2022-01-12 15:46:11 -08:00
2022-01-23 06:20:44 +02:00
2022-01-23 06:20:44 +02:00
2022-01-14 16:02:28 +01:00
2022-01-14 14:55:38 +01:00
2022-01-17 05:49:30 +02:00
2022-01-10 08:13:52 -08:00
2022-01-17 19:48:07 +01:00
2022-01-23 06:20:44 +02:00
2022-01-22 08:33:37 +02:00
2022-01-18 10:05:48 +02:00
2022-01-20 13:31:46 +02:00
2022-01-14 18:50:54 -05:00
2022-01-16 06:52:38 +02:00
2022-01-23 06:20:44 +02:00
2022-01-14 18:50:53 -05:00
2022-01-17 08:07:57 +02:00
2022-01-06 09:53:41 +01:00
2022-01-22 08:33:37 +02:00