Skip to content

Commit 0cede37

Browse files
committed
dm: fix comment in __dm_suspend()
Fix stale references to functions that have been renamed and fix typo. Signed-off-by: Mike Snitzer <[email protected]>
1 parent b2abdb1 commit 0cede37

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/md/dm.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,13 +2518,12 @@ static int __dm_suspend(struct mapped_device *md, struct dm_table *map,
25182518
/*
25192519
* Here we must make sure that no processes are submitting requests
25202520
* to target drivers i.e. no one may be executing
2521-
* __split_and_process_bio. This is called from dm_request and
2522-
* dm_wq_work.
2521+
* __split_and_process_bio from dm_submit_bio.
25232522
*
2524-
* To get all processes out of __split_and_process_bio in dm_request,
2523+
* To get all processes out of __split_and_process_bio in dm_submit_bio,
25252524
* we take the write lock. To prevent any process from reentering
2526-
* __split_and_process_bio from dm_request and quiesce the thread
2527-
* (dm_wq_work), we set BMF_BLOCK_IO_FOR_SUSPEND and call
2525+
* __split_and_process_bio from dm_submit_bio and quiesce the thread
2526+
* (dm_wq_work), we set DMF_BLOCK_IO_FOR_SUSPEND and call
25282527
* flush_workqueue(md->wq).
25292528
*/
25302529
set_bit(DMF_BLOCK_IO_FOR_SUSPEND, &md->flags);

0 commit comments

Comments
 (0)