]> git.karo-electronics.de Git - karo-tx-linux.git/commit
UBI: dont call ubi_self_check_all_ff() in __wl_get_peb()
authorRichard Weinberger <richard@nod.at>
Mon, 3 Dec 2012 19:57:47 +0000 (20:57 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Dec 2012 14:04:31 +0000 (16:04 +0200)
commit894aef215775b56b725e9dde856b7a8b091ddfcc
tree1268cbe06004ae4d8b7f35d193310624fe36e824
parented4b7021cb51fe5a0f260df03298709347a26967
UBI: dont call ubi_self_check_all_ff() in __wl_get_peb()

As ubi_self_check_all_ff() might sleep we are not allowed
to call it from atomic context.
For now we call it only from ubi_wl_get_peb().
There are some code paths where it would also make sense,
but these paths are currently atomic and only enabled
when fastmap is used.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/wl.c