diff options
author | Bart Van Assche <[email protected]> | 2022-11-18 15:37:03 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-11-26 02:31:10 +0000 |
commit | ee8c88cab4afbd5ee10a127d6cbecd6b200185a5 (patch) | |
tree | f6f27b3b5dd8e6dbe3351d4df556929b5d50a70d /lib/memory-notifier-error-inject.c | |
parent | 4d450cf2b00d34b53f52d93216dd23af57bdca73 (diff) |
scsi: ufs: core: Fix the polling implementation
Fix the following issues in ufshcd_poll():
- If polling succeeds, return a positive value.
- Do not complete polling requests from interrupt context because the
block layer expects these requests to be completed from thread
context. From block/bio.c:
If REQ_ALLOC_CACHE is set, the final put of the bio MUST be done from
process context, not hard/soft IRQ.
Fixes: eaab9b573054 ("scsi: ufs: Implement polling support")
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Adrian Hunter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions