History

dm: fix comment in __dm_suspend()

Fix stale references to functions that have been renamed and fix typo.

Mike Snitzer committed 6 years ago

Commit 0cede371 parent b2abdb11 file · +4 −5Browse files

Unified · Split

drivers/md/dm.c+4−5
@@ -2518,13 +2518,12 @@ static int __dm_suspend(struct mapped_device *md, struct dm_table *map, · 2517 unmodified lines
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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t