From: Richard Weinberger Date: Mon, 10 Nov 2014 15:28:08 +0000 (+0100) Subject: UBI: Fastmap: Locking updates X-Git-Tag: omap-for-v4.1/fixes-rc1~135^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=111ab0b26fc1bfad575d1e376e146d194d261e22;p=pandora-kernel.git UBI: Fastmap: Locking updates a) Rename ubi->fm_sem to ubi->fm_eba_sem as this semaphore protects EBA changes. b) Turn ubi->fm_mutex into a rw semaphore. It will still serialize fastmap writes but also ensures that ubi_wl_put_peb() is not interrupted by a fastmap write. We use a rw semaphore to allow ubi_wl_put_peb() still to be executed in parallel if no fastmap write is happening. Signed-off-by: Richard Weinberger --- Reading git-diff-tree failed