From: Minchan Kim <minchan@kernel.org>
To: Phillip Lougher <phillip@squashfs.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/4] Squashfs: Refactor decompressor interface and code (V3)
Date: Tue, 19 Nov 2013 17:07:33 +0900 [thread overview]
Message-ID: <20131119080733.GV4407@bbox> (raw)
In-Reply-To: <1384406059-28567-2-git-send-email-phillip@squashfs.org.uk>
On Thu, Nov 14, 2013 at 05:14:16AM +0000, Phillip Lougher wrote:
> The decompressor interface and code was written from
> the point of view of single-threaded operation. In doing
> so it mixed a lot of single-threaded implementation specific
> aspects into the decompressor code and elsewhere which makes it
> difficult to seamlessly support multiple different decompressor
> implementations.
>
> This patch does the following:
>
> 1. It removes compressor_options parsing from the decompressor
> init() function. This allows the decompressor init() function
> to be dynamically called to instantiate multiple decompressors,
> without the compressor options needing to be read and parsed each
> time.
>
> 2. It moves threading and all sleeping operations out of the
> decompressors. In doing so, it makes the decompressors
> non-blocking wrappers which only deal with interfacing with
> the decompressor implementation.
>
> 3. It splits decompressor.[ch] into decompressor generic functions
> in decompressor.[ch], and moves the single threaded
> decompressor implementation into decompressor_single.c.
>
> The result of this patch is Squashfs should now be able to
> support multiple decompressors by adding new decompressor_xxx.c
> files with specialised implementations of the functions in
> decompressor_single.c
>
> V3:
> * decompressor_single.c: Remove kfree(comp_opts) in error path
> * of squashfs_decompressor_create()
> * Double free of comp_opts found by static analysis, reported by
> * Dan Carpenter
>
> Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Reviewed-by: Minchan Kim <minchan@kernel.org>
--
Kind regards,
Minchan Kim
next prev parent reply other threads:[~2013-11-19 8:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-14 5:14 [PATCH 0/4] Squashfs: performance improvement patches (V3) Phillip Lougher
2013-11-14 5:14 ` [PATCH 1/4] Squashfs: Refactor decompressor interface and code (V3) Phillip Lougher
2013-11-19 8:07 ` Minchan Kim [this message]
2013-11-14 5:14 ` [PATCH 2/4] Squashfs: Generalise paging handling in the decompressors (V3) Phillip Lougher
2013-11-19 8:10 ` Minchan Kim
2013-11-14 5:14 ` [PATCH 3/4] Squashfs: Directly decompress into the page cache for file data (V3) Phillip Lougher
2013-11-19 8:17 ` Minchan Kim
2013-11-14 5:14 ` [PATCH 4/4] Squashfs: Check stream is not NULL in decompressor_multi.c Phillip Lougher
2013-11-19 8:18 ` Minchan Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131119080733.GV4407@bbox \
--to=minchan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=phillip@squashfs.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.