]> git.baikalelectronics.ru Git - kernel.git/commit
Squashfs: add multi-threaded decompression using percpu variable
authorPhillip Lougher <phillip@squashfs.org.uk>
Mon, 18 Nov 2013 02:31:36 +0000 (02:31 +0000)
committerPhillip Lougher <phillip@squashfs.org.uk>
Wed, 20 Nov 2013 03:58:03 +0000 (03:58 +0000)
commiteff35ff94ae8458a40919a25877079cd03eb9dba
tree03a6146c22473beb13e2ebda605d6a332ddb758b
parent69a16a3240c5ee62907c8ffe5549192ee44260a8
Squashfs: add multi-threaded decompression using percpu variable

Add a multi-threaded decompression implementation which uses
percpu variables.

Using percpu variables has advantages and disadvantages over
implementations which do not use percpu variables.

Advantages:
  * the nature of percpu variables ensures decompression is
    load-balanced across the multiple cores.
  * simplicity.

Disadvantages: it limits decompression to one thread per core.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
fs/squashfs/Kconfig
fs/squashfs/Makefile
fs/squashfs/decompressor_multi_percpu.c [new file with mode: 0644]