Commit d7035b7
scsi: core: Don't wait for quiesce in scsi_stop_queue()
scsi_stop_queue() has just two callers, one with and one without
"nowait". As blk_mq_quiesce_queue() comes down to
blk_mq_quiesce_queue_nowait() followed by blk_mq_wait_quiesce_done(), we
might as well open-code this in scsi_device_block().
Also, add a comment explaining why blk_mq_quiesce_queue_nowait() must be
called with the state_mutex held, see
https://lore.kernel.org/linux-scsi/3b8b13bf-a458-827a-b916-07d7eee8ae00@acm.org/.
Signed-off-by: Martin Wilck <mwilck@suse.com>
Link: https://lore.kernel.org/r/20230614103616.31857-5-mwilck@suse.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent c5e46f7 commit d7035b7
1 file changed
Lines changed: 16 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2725 | 2725 | | |
2726 | 2726 | | |
2727 | 2727 | | |
2728 | | - | |
| 2728 | + | |
2729 | 2729 | | |
2730 | 2730 | | |
2731 | 2731 | | |
2732 | 2732 | | |
2733 | 2733 | | |
2734 | | - | |
2735 | | - | |
| 2734 | + | |
2736 | 2735 | | |
2737 | | - | |
2738 | | - | |
2739 | | - | |
2740 | | - | |
2741 | | - | |
2742 | | - | |
2743 | | - | |
2744 | | - | |
2745 | | - | |
| 2736 | + | |
| 2737 | + | |
2746 | 2738 | | |
2747 | 2739 | | |
2748 | 2740 | | |
| |||
2769 | 2761 | | |
2770 | 2762 | | |
2771 | 2763 | | |
2772 | | - | |
| 2764 | + | |
2773 | 2765 | | |
2774 | 2766 | | |
2775 | 2767 | | |
| |||
2794 | 2786 | | |
2795 | 2787 | | |
2796 | 2788 | | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
2800 | 2800 | | |
2801 | 2801 | | |
2802 | 2802 | | |
| |||
0 commit comments