UBI: dont call ubi_self_check_all_ff() in __wl_get_peb()
commit894aef215775b56b725e9dde856b7a8b091ddfcc
authorRichard Weinberger <richard@nod.at>
Mon, 3 Dec 2012 19:57:47 +0000 (3 20:57 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Dec 2012 14:04:31 +0000 (4 16:04 +0200)
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