Commit e607ef6
smb: client: allocate enough space for MR WRs and ib_drain_qp()
The IB_WR_REG_MR and IB_WR_LOCAL_INV operations for smbdirect_mr_io
structures should never fail because the submission or completion queues
are too small. So we allocate more send_wr depending on the (local) max
number of MRs.
While there also add additional space for ib_drain_qp().
This should make sure ib_post_send() will never fail
because the submission queue is full.
Fixes: f198186 ("CIFS: SMBD: Establish SMB Direct connection")
Fixes: cc55f65 ("smb: client: make use of common smbdirect_socket_parameters")
Cc: [email protected]
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 211ddde commit e607ef6
1 file changed
+23
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1767 | 1767 | | |
1768 | 1768 | | |
1769 | 1769 | | |
| 1770 | + | |
1770 | 1771 | | |
1771 | 1772 | | |
1772 | 1773 | | |
| |||
1838 | 1839 | | |
1839 | 1840 | | |
1840 | 1841 | | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
1841 | 1861 | | |
1842 | 1862 | | |
1843 | 1863 | | |
| |||
1848 | 1868 | | |
1849 | 1869 | | |
1850 | 1870 | | |
1851 | | - | |
| 1871 | + | |
1852 | 1872 | | |
1853 | 1873 | | |
1854 | 1874 | | |
1855 | 1875 | | |
1856 | 1876 | | |
1857 | 1877 | | |
1858 | 1878 | | |
1859 | | - | |
| 1879 | + | |
1860 | 1880 | | |
1861 | 1881 | | |
1862 | 1882 | | |
| |||
1865 | 1885 | | |
1866 | 1886 | | |
1867 | 1887 | | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | | - | |
| 1888 | + | |
1873 | 1889 | | |
1874 | 1890 | | |
1875 | 1891 | | |
| |||
1883 | 1899 | | |
1884 | 1900 | | |
1885 | 1901 | | |
1886 | | - | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
1890 | | - | |
1891 | | - | |
1892 | 1902 | | |
1893 | 1903 | | |
1894 | 1904 | | |
| |||
0 commit comments