Re: [PATCH v2 3/4] sd: Make synchronize cache upon shutdown asynchronous

2017-04-12 Thread Bart Van Assche
On Wed, 2017-04-12 at 16:41 +0200, Benjamin Block wrote: > On Mon, Apr 10, 2017 at 10:54:01AM -0700, Bart Van Assche wrote: > > [ ... ] > OK, so I take it the problem is when the queue is stopped, then the > completion in blk_execute_rq() will never be triggered and then we wait > for a timeout

Re: [PATCH v2 3/4] sd: Make synchronize cache upon shutdown asynchronous

2017-04-12 Thread Benjamin Block
On Mon, Apr 10, 2017 at 10:54:01AM -0700, Bart Van Assche wrote: > This patch avoids that sd_shutdown() hangs on the SYNCHRONIZE CACHE > command if the block layer queue has been stopped by > scsi_target_block(). > > Signed-off-by: Bart Van Assche > Cc: Israel Rukshin

[PATCH v2 3/4] sd: Make synchronize cache upon shutdown asynchronous

2017-04-10 Thread Bart Van Assche
This patch avoids that sd_shutdown() hangs on the SYNCHRONIZE CACHE command if the block layer queue has been stopped by scsi_target_block(). Signed-off-by: Bart Van Assche Cc: Israel Rukshin Cc: Max Gurtovoy Cc: Hannes