Re: [PATCH v4] cifs: Do not modify mid entry after submitting I/O in cifs_call_async

2017-06-29 Thread Steve French
merged into cifs-2.6.git for-next On Wed, Jun 28, 2017 at 5:55 PM, Long Li wrote: > From: Long Li > > In cifs_call_async, server may respond as soon as I/O is submitted. Because > mid entry is freed on the return path, it should not be modified after I/O > is submitted. > > cifs_save_when_sent m

[PATCH v4] cifs: Do not modify mid entry after submitting I/O in cifs_call_async

2017-06-28 Thread Long Li
From: Long Li In cifs_call_async, server may respond as soon as I/O is submitted. Because mid entry is freed on the return path, it should not be modified after I/O is submitted. cifs_save_when_sent modifies the sent timestamp in mid entry, and should not be called after I/O. Call it before I/O.