Date: Tue, 8 Aug 2017 13:59:08 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Slawa Olhovchenkov <slw@zxy.spb.ru> Cc: jch <jch@FreeBSD.org>, FreeBSD Net <freebsd-net@freebsd.org>, FreeBSD Stable <freebsd-stable@freebsd.org>, Ben RUBSON <ben.rubson@gmail.com>, hiren <hiren@strugglingcoder.info> Subject: Re: mlx4en, timer irq @100%... (11.0 stuck on high network load ???) Message-ID: <da31fd4d-9226-f2e4-0d5e-b8c05ee66f10@selasky.org> In-Reply-To: <20170808115635.GY1585@zxy.spb.ru> References: <2ADA8C57-2C2D-4F97-9F0B-82D53EDDC649@gmail.com> <061cdf72-6285-8239-5380-58d9d19a1ef7@selasky.org> <92BEE83D-498F-47D5-A53C-39DCDC00A0FD@gmail.com> <5d8960d8-e1ff-8719-320f-d3ae84054714@selasky.org> <6B4A35F7-5694-4945-9575-19ADB678F9FA@gmail.com> <297a784a-3d80-b1a6-652e-a78621fe5a8b@selasky.org> <3ECCFBF1-18D9-4E33-8F39-0C366C3BB8B4@gmail.com> <c05c2b1c-b5a8-c39c-6dff-e6cc0d8642bf@selasky.org> <20170808113352.GH18123@zxy.spb.ru> <f006e193-29b6-689a-8957-04d412969ace@selasky.org> <20170808115635.GY1585@zxy.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08/08/17 13:56, Slawa Olhovchenkov wrote: > On Tue, Aug 08, 2017 at 01:49:08PM +0200, Hans Petter Selasky wrote: > >> On 08/08/17 13:33, Slawa Olhovchenkov wrote: >>> TW_RUNLOCK(V_tw_lock); >>> and >>> if (INP_INFO_TRY_WLOCK(&V_tcbinfo)) { >>> >>> `inp` can be invalidated, freed and this pointer may be invalid? >> >> If you look one line up there is a pcbref ?? > > Yes. > Can different thread take this inp and freed it? > May be timer thread? No, it cannot be freed while there is a ref. Some lines down the ref is dropped once the inp pointer is no longer needed. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?da31fd4d-9226-f2e4-0d5e-b8c05ee66f10>