f2fs: fix the starvation problem on cp_rwsem
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 10 Oct 2013 05:36:00 +0000 (14:36 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 18 Oct 2013 00:44:13 +0000 (09:44 +0900)
commitb1838f8952123842b00d6f8979e0f19a3b680e87
treef93aa47a01af72ed58010097bd2ef78b78f56736
parent3d1e38073b3f33d31df1ae09aaccab3dfd9fb61e
f2fs: fix the starvation problem on cp_rwsem

This patch removes the logic previously introduced to address the starvation
on cp_rwsem.

One potential there-in bug is that we should cover the wait.list with spin_lock,
but the previous code broke this rule.

And, actually current rwsem handles this starvation issue reasonably, so that we
didn't need to do this before neither.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/super.c