Commit 4e0d622
committed
bdev: fix max_rw_size calculation
max write size calculation need to account aligned length and the
blocklen with metadata as done via bdev_get_max_write. This otherwise
fails during bdev_io_get_buf for bounce buffer where max length
returned by bdev_io_get_max_buf_len breaches the iobuf_large length.
Change-Id: I0e2ee2cfa80f0617f8b1379315b9dba2459d2c71
Signed-off-by: Diwakar Sharma <[email protected]>1 parent 5ad4b3f commit 4e0d622
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7795 | 7795 | | |
7796 | 7796 | | |
7797 | 7797 | | |
7798 | | - | |
7799 | | - | |
7800 | | - | |
7801 | | - | |
7802 | | - | |
7803 | | - | |
7804 | 7798 | | |
7805 | 7799 | | |
7806 | 7800 | | |
7807 | 7801 | | |
7808 | 7802 | | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
7809 | 7809 | | |
7810 | 7810 | | |
7811 | 7811 | | |
| |||
0 commit comments