udlfb: introduce a rendering mutex
Rendering calls may be done simultaneously from the workqueue, dlfb_ops_write, dlfb_ops_ioctl, dlfb_ops_set_par and dlfb_dpy_deferred_io. The code is robust enough so that it won't crash on concurrent rendering. However, concurrent rendering may cause display corruption if the same pixel is simultaneously being rendered. In order to avoid this corruption, this patch adds a mutex around the rendering calls. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Cc: Bernie Thompson <bernie@plugable.com> Cc: Ladislav Michl <ladis@linux-mips.org> Cc: <stable@vger.kernel.org> [b.zolnierkie: replace "dlfb:" with "uldfb:" in the patch summary] Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:

committed by
Bartlomiej Zolnierkiewicz

父節點
6b11f9d843
當前提交
babc250e27
@@ -48,6 +48,7 @@ struct dlfb_data {
|
||||
int base8;
|
||||
u32 pseudo_palette[256];
|
||||
int blank_mode; /*one of FB_BLANK_ */
|
||||
struct mutex render_mutex;
|
||||
int damage_x;
|
||||
int damage_y;
|
||||
int damage_x2;
|
||||
|
Reference in New Issue
Block a user