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
2518 /*2518 /*
2519 * Here we must make sure that no processes are submitting requests2519 * Here we must make sure that no processes are submitting requests
2520 * to target drivers i.e. no one may be executing2520 * to target drivers i.e. no one may be executing
2521 * __split_and_process_bio. This is called from dm_request and2521 * __split_and_process_bio from dm_submit_bio.
2522 * dm_wq_work.
2523 *2522 *
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,
2525 * we take the write lock. To prevent any process from reentering2524 * we take the write lock. To prevent any process from reentering
2526 * __split_and_process_bio from dm_request and quiesce the thread2525 * __split_and_process_bio from dm_submit_bio and quiesce the thread
2527 * (dm_wq_work), we set BMF_BLOCK_IO_FOR_SUSPEND and call2526 * (dm_wq_work), we set DMF_BLOCK_IO_FOR_SUSPEND and call
2528 * flush_workqueue(md->wq).2527 * flush_workqueue(md->wq).
2529 */2528 */
2530 set_bit(DMF_BLOCK_IO_FOR_SUSPEND, &md->flags);2529 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