Skip to content

Commit adfe83b

Browse files
richardweinbergerdedekind
authored andcommitted
UBI: Improve comment on work_sem
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>
1 parent d577bc1 commit adfe83b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/mtd/ubi/ubi.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ struct ubi_debug_info {
439439
* @move_to, @move_to_put @erase_pending, @wl_scheduled, @works,
440440
* @erroneous, and @erroneous_peb_count fields
441441
* @move_mutex: serializes eraseblock moves
442-
* @work_sem: synchronizes the WL worker with use tasks
442+
* @work_sem: used to wait for all the scheduled works to finish and prevent
443+
* new works from being submitted
443444
* @wl_scheduled: non-zero if the wear-leveling was scheduled
444445
* @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any
445446
* physical eraseblock

0 commit comments

Comments
 (0)