summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2026-05-21 20:33:29 +0300
committerNiklas Cassel <cassel@kernel.org>2026-06-01 20:07:37 +0300
commitaa0ae1c35f7b3e9afed2324bed5f5c87ad55b92c (patch)
tree7f0f0df6a0eb5f228001507d43b4882db9d0288a /include/linux/stackprotector.h
parentfa0f6679c73553d3e457884759ae4c6f220a71de (diff)
downloadlinux-aa0ae1c35f7b3e9afed2324bed5f5c87ad55b92c.tar.xz
ata: libata: Fix ata_exec_internal()
Some but not all ata_exec_internal() calls happen from the context of the ATA error handler. Commit c0c362b60e25 ("libata: implement cross-port EH exclusion") added ata_eh_release() and ata_eh_acquire() calls in ata_exec_internal(). Calling these functions is necessary if the caller holds the eh_mutex but is not allowed if the caller doesn't hold that mutex. Fix this by only calling ata_eh_release() and ata_eh_acquire() if the caller holds the eh_mutex. An example of an indirect caller of ata_exec_internal() that does not hold the eh_mutex is ata_host_register(). Fixes: c0c362b60e25 ("libata: implement cross-port EH exclusion") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Niklas Cassel <cassel@kernel.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Hannes Reinecke <hare@kernel.org> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions