diff options
author | Hannes Reinecke <[email protected]> | 2015-11-26 08:46:57 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2015-11-29 14:37:27 -0700 |
commit | bf4e6b4e757488dee1b6a581f49c7ac34cd217f8 (patch) | |
tree | 95e32c168d7478d0f541b5d19d1edf0e3d1160f1 /lib/netdev-notifier-error-inject.c | |
parent | d0a712ceb83ebaea32d520825ee7b997f59b168f (diff) |
block: Always check queue limits for cloned requests
When a cloned request is retried on other queues it always needs
to be checked against the queue limits of that queue.
Otherwise the calculations for nr_phys_segments might be wrong,
leading to a crash in scsi_init_sgtable().
To clarify this the patch renames blk_rq_check_limits()
to blk_cloned_rq_check_limits() and removes the symbol
export, as the new function should only be used for
cloned requests and never exported.
Cc: Mike Snitzer <[email protected]>
Cc: Ewan Milne <[email protected]>
Cc: Jeff Moyer <[email protected]>
Signed-off-by: Hannes Reinecke <[email protected]>
Fixes: e2a60da74 ("block: Clean up special command handling logic")
Cc: [email protected] # 3.7+
Acked-by: Mike Snitzer <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions