]> git.baikalelectronics.ru Git - 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)
commitc5a5eb07a186a039adb6a607fc571e39cfa2dd28
treeb7a500ba2ada9f2e70d4adc8a608095aa6f63045
parent3533ef83e308e070075b9d6376529ff99d493ee3
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