From: Richard Weinberger Date: Fri, 19 Sep 2014 09:48:47 +0000 (+0200) Subject: UBI: Improve comment on work_sem X-Git-Tag: firefly_0821_release~176^2~3039^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=adfe83be973dc990f3763de3667c4cd004e6e4f7;p=firefly-linux-kernel-4.4.55.git UBI: Improve comment on work_sem Make clear what work_sem really does. Suggested-by: Artem Bityutskiy Signed-off-by: Richard Weinberger Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 7bf416329c19..f2933df15f9c 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h @@ -439,7 +439,8 @@ struct ubi_debug_info { * @move_to, @move_to_put @erase_pending, @wl_scheduled, @works, * @erroneous, and @erroneous_peb_count fields * @move_mutex: serializes eraseblock moves - * @work_sem: synchronizes the WL worker with use tasks + * @work_sem: used to wait for all the scheduled works to finish and prevent + * new works from being submitted * @wl_scheduled: non-zero if the wear-leveling was scheduled * @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any * physical eraseblock