]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: allow passing in null rq to scsi_prep_state_check()
authorMing Lei <ming.lei@redhat.com>
Sat, 14 Oct 2017 09:22:31 +0000 (17:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Nov 2017 14:20:02 +0000 (08:20 -0600)
commitaeec77629a4ac6f8c248f3a82e80d4170a881f22
treeb7a500ba2ada9f2e70d4adc8a608095aa6f63045
parentb347689ffbca745ac457ee27400ce1affd571c6f
scsi: allow passing in null rq to scsi_prep_state_check()

In the following patch, we will implement scsi_get_budget()
which need to call scsi_prep_state_check() when rq isn't
dequeued yet.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsi_lib.c