UBI: Improve comment on work_sem
authorRichard Weinberger <richard@nod.at>
Fri, 19 Sep 2014 09:48:47 +0000 (11:48 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 19 Sep 2014 15:11:57 +0000 (18:11 +0300)
Make clear what work_sem really does.

Suggested-by: Artem Bityutskiy <dedekind1@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/ubi.h

index 7bf416329c1973ee58b6c3511f90c8aecc5a997a..f2933df15f9c8c5097ddf7822e84f517634b5703 100644 (file)
@@ -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