dfu: Limit maximum length of io queue 33/223033/12
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 17 Mar 2020 04:56:20 +0000 (13:56 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 18 Mar 2020 09:31:54 +0000 (18:31 +0900)
commitc7ba9c8fc76ea7a329d66ebc5da9db12d1db61da
tree226543494091772da9fe0344f99e8fc608400794
parent951986d4deb9524f2358b238d161e0b740b34bdc
dfu: Limit maximum length of io queue

To prevent timeout due to fsync, the maximum length of io queue is
limited. Transfer may be blocked until the previous request is
fsync'ed, but it is not harmful to overall performance since fsync is
bottleneck; even transfer is faster, flashing time is not reduced
because elapsed time is mostly consumed in fsync.

Change-Id: I8b59c175eb8065f388487249c9e7f3ef1dbab5b6
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/dfu.c