]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: do not use vmalloc on I/O path
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 29 Aug 2007 11:51:52 +0000 (14:51 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 14 Oct 2007 10:10:21 +0000 (13:10 +0300)
commit02c4c81327ecd72f3c35c5fc71264e6ba72c7db1
tree27b5547a0e24add89deafedaed784328bc3c173e
parent98a9052079efbb96df92534f2d7e2c8a7d6009a7
UBI: do not use vmalloc on I/O path

Similar reason as in case of the previous patch: it causes
deadlocks if a filesystem with writeback support works on top
of UBI. So pre-allocate needed buffers when attaching MTD device.
We also need mutexes to protect the buffers, but they do not
cause much contantion because they are used in recovery, torture,
and WL copy routines, which are called seldom.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/io.c
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/scan.h
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/vtbl.c
drivers/mtd/ubi/wl.c