Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-04-05 Thread Chao Yu
On 2017/4/4 1:40, Jaegeuk Kim wrote: > On 04/01, Chao Yu wrote: >> Ping, >> >> Any problem here? >> >> Thanks, >> >> On 2017/3/28 9:17, Chao Yu wrote: >>> On 2017/3/28 7:56, Jaegeuk Kim wrote: On 03/27, Chao Yu wrote: > In f2fs_submit_discard_endio, we will wake up waiter before setting

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-04-05 Thread Chao Yu
On 2017/4/4 1:40, Jaegeuk Kim wrote: > On 04/01, Chao Yu wrote: >> Ping, >> >> Any problem here? >> >> Thanks, >> >> On 2017/3/28 9:17, Chao Yu wrote: >>> On 2017/3/28 7:56, Jaegeuk Kim wrote: On 03/27, Chao Yu wrote: > In f2fs_submit_discard_endio, we will wake up waiter before setting

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-04-03 Thread Jaegeuk Kim
On 04/01, Chao Yu wrote: > Ping, > > Any problem here? > > Thanks, > > On 2017/3/28 9:17, Chao Yu wrote: > > On 2017/3/28 7:56, Jaegeuk Kim wrote: > >> On 03/27, Chao Yu wrote: > >>> In f2fs_submit_discard_endio, we will wake up waiter before setting > >>> discard command states, so waiter may

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-04-03 Thread Jaegeuk Kim
On 04/01, Chao Yu wrote: > Ping, > > Any problem here? > > Thanks, > > On 2017/3/28 9:17, Chao Yu wrote: > > On 2017/3/28 7:56, Jaegeuk Kim wrote: > >> On 03/27, Chao Yu wrote: > >>> In f2fs_submit_discard_endio, we will wake up waiter before setting > >>> discard command states, so waiter may

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-04-01 Thread Chao Yu
Ping, Any problem here? Thanks, On 2017/3/28 9:17, Chao Yu wrote: > On 2017/3/28 7:56, Jaegeuk Kim wrote: >> On 03/27, Chao Yu wrote: >>> In f2fs_submit_discard_endio, we will wake up waiter before setting >>> discard command states, so waiter may use incorrect states. Change >>> the order

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-04-01 Thread Chao Yu
Ping, Any problem here? Thanks, On 2017/3/28 9:17, Chao Yu wrote: > On 2017/3/28 7:56, Jaegeuk Kim wrote: >> On 03/27, Chao Yu wrote: >>> In f2fs_submit_discard_endio, we will wake up waiter before setting >>> discard command states, so waiter may use incorrect states. Change >>> the order

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-03-27 Thread Chao Yu
On 2017/3/28 7:56, Jaegeuk Kim wrote: > On 03/27, Chao Yu wrote: >> In f2fs_submit_discard_endio, we will wake up waiter before setting >> discard command states, so waiter may use incorrect states. Change >> the order between complete() and states setting to fix this issue. >> >> Signed-off-by:

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-03-27 Thread Chao Yu
On 2017/3/28 7:56, Jaegeuk Kim wrote: > On 03/27, Chao Yu wrote: >> In f2fs_submit_discard_endio, we will wake up waiter before setting >> discard command states, so waiter may use incorrect states. Change >> the order between complete() and states setting to fix this issue. >> >> Signed-off-by:

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-03-27 Thread Jaegeuk Kim
On 03/27, Chao Yu wrote: > In f2fs_submit_discard_endio, we will wake up waiter before setting > discard command states, so waiter may use incorrect states. Change > the order between complete() and states setting to fix this issue. > > Signed-off-by: Chao Yu > --- >

Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-03-27 Thread Jaegeuk Kim
On 03/27, Chao Yu wrote: > In f2fs_submit_discard_endio, we will wake up waiter before setting > discard command states, so waiter may use incorrect states. Change > the order between complete() and states setting to fix this issue. > > Signed-off-by: Chao Yu > --- > fs/f2fs/segment.c | 2 +- >

[PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-03-27 Thread Chao Yu
In f2fs_submit_discard_endio, we will wake up waiter before setting discard command states, so waiter may use incorrect states. Change the order between complete() and states setting to fix this issue. Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 2 +- 1 file changed, 1

[PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-03-27 Thread Chao Yu
In f2fs_submit_discard_endio, we will wake up waiter before setting discard command states, so waiter may use incorrect states. Change the order between complete() and states setting to fix this issue. Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 2 +- 1 file changed, 1 insertion(+), 1