From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 71-19-161-253.dedicated.allstream.net ([71.19.161.253] helo=nsa.nbspaymentsolutions.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WHxt9-0001Iq-Ll for linux-mtd@lists.infradead.org; Mon, 24 Feb 2014 15:56:16 +0000 From: Bill Pringlemeir To: Richard Weinberger Subject: Re: UBI leb_write_unlock NULL pointer Oops (continuation) References: <52EF772D.8080207@nod.at> <52EF9FFE.4020405@nod.at> <52F1F658.9080701@nod.at> <87zjlxy8lj.fsf@nbsps.com> <87txc4w698.fsf@nbsps.com> <877g8ojqsn.fsf@nbsps.com> <53079725.6080105@nod.at> <87ios8gsho.fsf@nbsps.com> <87k3coq8di.fsf@nbsps.com> <530860B1.9000808@nod.at> <877g8kr1h7.fsf@nbsps.com> <530B670B.3090002@nod.at> <87sir8ms41.fsf@nbsps.com> Date: Mon, 24 Feb 2014 10:48:33 -0500 In-Reply-To: <87sir8ms41.fsf@nbsps.com> (Bill Pringlemeir's message of "Mon, 24 Feb 2014 10:45:50 -0500") Message-ID: <87ob1wmrzi.fsf@nbsps.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Wiedemer, Thorsten \(Lawo AG\)" , "linux-mtd@lists.infradead.org" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 24 Feb 2014, bpringlemeir@nbsps.com wrote: > /* could reschedule here... */ > on 'if (vol->eba_tbl[lnum] != from)' another thread has this > 'ltree_entry' so count is >1. > /* could reschedule here... */ Sorry, maybe that is not true. I don't know enough about the logic of ubi_eba_copy_leb(). Another thread has at least changed the physical map. It may/may not still have the rwsemaphore.