Re: [PATCH v6 08/13] Remove get_device() / put_device() pair from scsi_request_fn()

2012-12-02 Thread Tejun Heo
Hello, On Wed, Nov 28, 2012 at 01:48:59PM +0100, Bart Van Assche wrote: > Now that all scsi_request_fn() callers hold a reference on the > SCSI device that function is invoked on and since > blk_cleanup_queue() waits until scsi_request_fn() has finished > it is safe to remove the get_device() / pu

[PATCH v6 08/13] Remove get_device() / put_device() pair from scsi_request_fn()

2012-11-28 Thread Bart Van Assche
Now that all scsi_request_fn() callers hold a reference on the SCSI device that function is invoked on and since blk_cleanup_queue() waits until scsi_request_fn() has finished it is safe to remove the get_device() / put_device() pair from scsi_request_fn(). Signed-off-by: Bart Van Assche Acked-by