diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2015-01-29 00:30:29 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-01-29 00:45:23 +0100 |
commit | 018d5ef2048fcab339467bcbebccf588c9bd2531 (patch) | |
tree | 3f6acefe4dc0799f07a100a66b4b3eceb1087fab /block/ioctl.c | |
parent | pata_pdc2027x: Use 64-bit timekeeping (diff) | |
download | linux-018d5ef2048fcab339467bcbebccf588c9bd2531.tar.xz linux-018d5ef2048fcab339467bcbebccf588c9bd2531.zip |
ata: ahci_platform: fix owner module reference mismatch for scsi host
The owner module reference of the ahci platform's scsi_host is
initialized to libahci_platform's one, because these drivers use a
scsi_host_template defined in libahci_platform. So these drivers can
be unloaded even if the scsi device is being accessed.
This fixes it by pushing the scsi_host_template from libahci_platform
to all leaf drivers. The scsi_host_template is passed through a new
argument of ahci_platform_init_host().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: linux-ide@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Diffstat (limited to 'block/ioctl.c')
0 files changed, 0 insertions, 0 deletions