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

2017-06-28 Thread Pavel Shilovsky
2017-06-28 15:02 GMT-07:00 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 sh

[PATCH v3] 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.