Commit b9c0bec
smb: client: call ib_dma_unmap_sg if mr->sgt.nents is not 0
This seems to be the more reliable way to check if we need to
call ib_dma_unmap_sg().
Fixes: c739858 ("CIFS: SMBD: Implement RDMA memory registration")
Cc: Steve French <[email protected]>
Cc: Tom Talpey <[email protected]>
Cc: Long Li <[email protected]>
Cc: Namjae Jeon <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Stefan Metzmacher <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent 56c817e commit b9c0bec
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
2368 | | - | |
2369 | | - | |
2370 | | - | |
| 2368 | + | |
| 2369 | + | |
2371 | 2370 | | |
2372 | 2371 | | |
2373 | 2372 | | |
| |||
2589 | 2588 | | |
2590 | 2589 | | |
2591 | 2590 | | |
| 2591 | + | |
2592 | 2592 | | |
2593 | 2593 | | |
2594 | 2594 | | |
| |||
2651 | 2651 | | |
2652 | 2652 | | |
2653 | 2653 | | |
2654 | | - | |
| 2654 | + | |
2655 | 2655 | | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
2656 | 2660 | | |
2657 | 2661 | | |
2658 | 2662 | | |
| |||
0 commit comments