[PATCH 2/4] firmware loader: fix one reqeust_firmware race

2012-10-08 Thread Ming Lei
Several loading requests may be pending on one same firmware buf, and this patch moves fw_map_pages_buf() before complete_all(_buf->completion) and let all requests see the mapped 'buf->data' once the loading is completed. Signed-off-by: Ming Lei --- drivers/base/firmware_class.c | 32

[PATCH 2/4] firmware loader: fix one reqeust_firmware race

2012-10-08 Thread Ming Lei
Several loading requests may be pending on one same firmware buf, and this patch moves fw_map_pages_buf() before complete_all(fw_buf-completion) and let all requests see the mapped 'buf-data' once the loading is completed. Signed-off-by: Ming Lei ming@canonical.com ---