Re: [PATCH 2/4] block: Introduce blk_wait_if_quiesced() and blk_finish_wait_if_quiesced()

2018-01-09 Thread Bart Van Assche
On Tue, 2018-01-09 at 07:41 +0100, Hannes Reinecke wrote: > I'm always a bit cautious when having rcu_read_lock() and > rcu_read_unlock() in two separate functions. > Can we make this dependency more explicit by renaming the first function > to blk_start_wait_if_quiesced() and updating the comment

Re: [PATCH 2/4] block: Introduce blk_wait_if_quiesced() and blk_finish_wait_if_quiesced()

2018-01-08 Thread Hannes Reinecke
On 01/08/2018 07:50 PM, Bart Van Assche wrote: > Introduce functions that allow block drivers to wait while a request > queue is in the quiesced state (blk-mq) or in the stopped state (legacy > block layer). The next patch will add calls to these functions in the > SCSI core. > > Signed-off-by: