diff options
author | 2017-06-02 14:21:53 -0700 | |
---|---|---|
committer | 2017-06-12 20:55:58 -0400 | |
commit | 551eb598e5ea52996eb821f43740496a78a97b68 (patch) | |
tree | fe57f0a626a83e9e2d1d183168df1306c201e90c /drivers/scsi/scsi_error.c | |
parent | scsi: Avoid that scsi_exit_rq() triggers a use-after-free (diff) | |
download | wireguard-linux-551eb598e5ea52996eb821f43740496a78a97b68.tar.xz wireguard-linux-551eb598e5ea52996eb821f43740496a78a97b68.zip |
scsi: Split scsi_internal_device_block()
Instead of passing a "wait" argument to scsi_internal_device_block(),
split this function into a function that waits and a function that
doesn't wait. This will make it easier to serialize SCSI device state
changes through a mutex.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
0 files changed, 0 insertions, 0 deletions