aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wwan/iosm/iosm_ipc_protocol.c
diff options
context:
space:
mode:
authorSeongJae Park <[email protected]>2022-08-31 16:58:24 +0000
committerJuergen Gross <[email protected]>2022-09-02 11:05:15 +0200
commitfe8f65b018effbf473f53af3538d0c1878b8b329 (patch)
tree9a761bc67f2f776c0ba209f2be993e9a04804cdf /drivers/net/wwan/iosm/iosm_ipc_protocol.c
parent9f5e0fe5d05f7e8de7f39b2b10089834eb0ff787 (diff)
xen-blkfront: Cache feature_persistent value before advertisement
Xen blkfront advertises its support of the persistent grants feature when it first setting up and when resuming in 'talk_to_blkback()'. Then, blkback reads the advertised value when it connects with blkfront and decides if it will use the persistent grants feature or not, and advertises its decision to blkfront. Blkfront reads the blkback's decision and it also makes the decision for the use of the feature. Commit 402c43ea6b34 ("xen-blkfront: Apply 'feature_persistent' parameter when connect"), however, made the blkfront's read of the parameter for disabling the advertisement, namely 'feature_persistent', to be done when it negotiate, not when advertise. Therefore blkfront advertises without reading the parameter. As the field for caching the parameter value is zero-initialized, it always advertises as the feature is disabled, so that the persistent grants feature becomes always disabled. This commit fixes the issue by making the blkfront does parmeter caching just before the advertisement. Fixes: 402c43ea6b34 ("xen-blkfront: Apply 'feature_persistent' parameter when connect") Cc: <[email protected]> # 5.10.x Reported-by: Marek Marczykowski-Górecki <[email protected]> Signed-off-by: SeongJae Park <[email protected]> Tested-by: Marek Marczykowski-Górecki <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol.c')
0 files changed, 0 insertions, 0 deletions