Home
last modified time | relevance | path

Searched hist:"111 ab0b26fc1bfad575d1e376e146d194d261e22" (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/mtd/ubi/
H A Dfastmap.cdiff 111ab0b26fc1bfad575d1e376e146d194d261e22 Mon Nov 10 09:28:08 CST 2014 Richard Weinberger <richard@nod.at> 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 <richard@nod.at>
H A Deba.cdiff 111ab0b26fc1bfad575d1e376e146d194d261e22 Mon Nov 10 09:28:08 CST 2014 Richard Weinberger <richard@nod.at> 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 <richard@nod.at>
H A Dubi.hdiff 111ab0b26fc1bfad575d1e376e146d194d261e22 Mon Nov 10 09:28:08 CST 2014 Richard Weinberger <richard@nod.at> 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 <richard@nod.at>
H A Dwl.cdiff 111ab0b26fc1bfad575d1e376e146d194d261e22 Mon Nov 10 09:28:08 CST 2014 Richard Weinberger <richard@nod.at> 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 <richard@nod.at>
H A Dbuild.cdiff 111ab0b26fc1bfad575d1e376e146d194d261e22 Mon Nov 10 09:28:08 CST 2014 Richard Weinberger <richard@nod.at> 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 <richard@nod.at>