From mboxrd@z Thu Jan 1 00:00:00 1970 From: Waiman Long Date: Tue, 14 Jan 2020 13:55:44 -0500 Subject: [Cluster-devel] [PATCH 02/12] locking/rwsem: Exit early when held by an anonymous owner In-Reply-To: <20200114182514.GA9949@lst.de> References: <20200114161225.309792-1-hch@lst.de> <20200114161225.309792-3-hch@lst.de> <925d1343-670e-8f92-0e73-6e9cee0d3ffb@redhat.com> <20200114182514.GA9949@lst.de> Message-ID: <8fae9cfa-93b0-4d54-6d16-35e920e25b6c@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 1/14/20 1:25 PM, Christoph Hellwig wrote: > On Tue, Jan 14, 2020 at 01:17:45PM -0500, Waiman Long wrote: >> The owner field is just a pointer to the task structure with the lower 3 >> bits served as flag bits. Setting owner to RWSEM_OWNER_UNKNOWN (-2) will >> stop optimistic spinning. So under what condition did the crash happen? > When running xfstests with all patches in this series except for this > one, IIRC in generic/114. Could you try the attached patch to see if it can fix the problem? Thanks, Longman -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-locking-rwsem-Fix-kernel-crash-when-spinning-on-RWSE.patch Type: text/x-patch Size: 1459 bytes Desc: not available URL: