summaryrefslogtreecommitdiffstats
path: root/kernel/watch_queue.c
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2020-07-14 21:03:36 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-29 07:45:20 +0200
commit237480760c5050e8e897846b93ba9ffdb6444301 (patch)
treed1b0268adfb7cc6b18ed1846b09c45616c99de00 /kernel/watch_queue.c
parentnvme-fc: drop a duplicated word in a comment (diff)
downloadlinux-237480760c5050e8e897846b93ba9ffdb6444301.tar.xz
linux-237480760c5050e8e897846b93ba9ffdb6444301.zip
nvme-fc: set max_segments to lldd max value
Currently the FC transport is set max_hw_sectors based on the lldds max sgl segment count. However, the block queue max segments is set based on the controller's max_segments count, which the transport does not set. As such, the lldd is receiving sgl lists that are exceeding its max segment count. Set the controller max segment count and derive max_hw_sectors from the max segment count. Signed-off-by: James Smart <jsmart2021@gmail.com> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/watch_queue.c')
0 files changed, 0 insertions, 0 deletions