summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChristoph Hellwig2019-07-24 08:52:52 +0200
committerJason Gunthorpe2019-07-25 21:14:39 +0200
commit2bcbeaefde2f0384d6ad351c151b1a9fe7791a0a (patch)
treec7de00fb18f33e57803a35263197776a1c209cb6 /net
parentLinus 5.3-rc1 (diff)
downloadkernel-qcow2-linux-2bcbeaefde2f0384d6ad351c151b1a9fe7791a0a.tar.gz
kernel-qcow2-linux-2bcbeaefde2f0384d6ad351c151b1a9fe7791a0a.tar.xz
kernel-qcow2-linux-2bcbeaefde2f0384d6ad351c151b1a9fe7791a0a.zip
mm/hmm: always return EBUSY for invalid ranges in hmm_range_{fault,snapshot}
We should not have two different error codes for the same condition. EAGAIN must be reserved for the FAULT_FLAG_ALLOW_RETRY retry case and signals to the caller that the mmap_sem has been unlocked. Use EBUSY for the !valid case so that callers can get the locking right. Link: https://lore.kernel.org/r/20190724065258.16603-2-hch@lst.de Tested-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ralph Campbell <rcampbell@nvidia.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> [jgg: elaborated commit message] Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions