diff options
author | Christoph Hellwig <[email protected]> | 2019-07-24 08:52:52 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-07-25 16:14:39 -0300 |
commit | 2bcbeaefde2f0384d6ad351c151b1a9fe7791a0a (patch) | |
tree | c7de00fb18f33e57803a35263197776a1c209cb6 /lib/mpi/mpi-internal.h | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) |
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/[email protected]
Tested-by: Ralph Campbell <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
[jgg: elaborated commit message]
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions