commit | 2ceda20f0a99a74a82b78870f3b3e5fa93087a7f | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Oct 05 10:41:23 2020 +0200 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Wed Oct 07 21:48:27 2020 -0400 |
tree | 9b77440cfe789b877ce34a791119b1192e6bbaaa | |
parent | 3a8dc5bbc8c04db2646ed0842118b0f66659a3db [diff] |
scsi: core: Move command size detection out of the fast path We only need to detect the command size for ioctl request from userspace, which is limited to the passthrough path. Move the check there instead of doing it for all queuecommand invocations. Link: https://lore.kernel.org/r/20201005084130.143273-4-hch@lst.de Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>