From: Bart Van Assche Date: Thu, 20 Feb 2014 22:20:56 +0000 (-0800) Subject: [SCSI] remove a useless get/put_device pair in scsi_request_fn X-Git-Tag: v3.15-rc1~136^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=613be1f626e602c6744101a003e8fc5c180e1af9;p=pandora-kernel.git [SCSI] remove a useless get/put_device pair in scsi_request_fn SCSI devices may only be removed by calling scsi_remove_device(). That function must invoke blk_cleanup_queue() before the final put of sdev->sdev_gendev. Since blk_cleanup_queue() waits for the block queue to drain and then tears it down, scsi_request_fn cannot be active anymore after blk_cleanup_queue() has returned and hence the get_device()/put_device() pair in scsi_request_fn is unnecessary. Signed-off-by: Bart Van Assche Reviewed-by: Tejun Heo Reviewed-by: Hannes Reinecke Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed