]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
UBI: allocate memory with GFP_NOFS
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 28 Aug 2007 18:29:32 +0000 (21:29 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 14 Oct 2007 10:10:20 +0000 (13:10 +0300)
commit33818bbb84cd371b63ed8849cc5264d24c8b3aa2
treeecee6a8f02d2d103c6eb33cc6173e74343b1861b
parentef6075fbfca9139f428d52d60e671da38aa2e212
UBI: allocate memory with GFP_NOFS

Use GFP_NOFS flag when allocating memory on I/O path, because otherwise
we may deadlock the filesystem which works on top of us. We observed
the deadlocks with UBIFS. Example:

VFS->FS lock a lock->UBI->kmalloc()->VFS writeback->FS locks the same
lock again.

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