On 10/19/21 17:33, Yanling Song wrote:
On Wed, 13 Oct 2021 15:00:07 -0700
Bart Van Assche <bvanassche@xxxxxxx> wrote:
Please take a look at the bsg_setup_queue() call in ufs_bsg_probe().
That call associates a BSG queue with the UFS host. That queue
supports requests of type struct ufs_bsg_request. The Fibre Channel
transport driver does something similar. I believe that this is a
better solution than introducing entirely new ioctls.
I wish there was a standard way to address the ioctrl issue.
Unfortunately ioctrl is the only way to meet our requirements as listed
in the above.
As discussed in previous megaraid's patchsets:
https://lore.kernel.org/linux-scsi/yq1inc2y019.fsf@xxxxxxxxxx/, that's
why every raid controller has it's own ioctrl.
Why are ioctls the only solution? Why is a bsg interface attached to the
SCSI host not appropriate? I haven't found the answer in the
conversation about the Megaraid driver.
Thanks,
Bart.