• James Bottomley's avatar
    [SCSI] fix SLUB WARN_ON · 542bd137
    James Bottomley authored
    We're getting a WARN_ON from SLUB indicating that we're trying to free
    caches with in-use objects.  The root cause is a new dependency in the
    command/sense free on unchecked_isa_dma.  The WARN_ON is caused by
    drivers which change this in their setup after the command/sense cache
    is allocated.
    
    The fix is to move the allocation of this cache into scsi_add_host()
    so things like gdth have an opportunity to modify it between alloc and
    add (but *not* after).
    
    The true fix would be to move unchecked_isa_dma into the template and
    out of the host, so it because a truly read only variable.
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
    542bd137
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...