f2fs: fix to cover io->bio with io_rwsem
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 2 Apr 2014 00:04:42 +0000 (09:04 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 2 Apr 2014 00:56:27 +0000 (09:56 +0900)
commitce23447fe5764391025a67c20c97eaf5c6ac1ec3
tree52efc6a6f4a78ed52514b50e0b72c93fc07864b5
parentd54c795b495b9bd417e482286c832c9a8eb210ae
f2fs: fix to cover io->bio with io_rwsem

In the f2fs_wait_on_page_writeback, io->bio should be covered by io_rwsem.
Otherwise, the bio pointer can become a dangling pointer due to data races.

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