[ext2resize] [PATCH][RFC] Ext3 online resizing locking issue (Again)
Status: Inactive
Brought to you by:
adilger
From: Glauber de O. C. <go...@br...> - 2005-09-01 23:01:04
|
Hi. Here is my new trial for the resize lock issue. Basically, it goes as follows: To ensure that only one resizer is running at a time, I added a global lock that is acquired in the very beginning of ext3_group_add and ext3_group_extend. lock_super is now only used in ext3_group_add in the moment we alter s_groups_count, and released after the super block is marked dirty. In ext3_group_extend, this is done outside the main function, so we can do it trusting the lock to be already held while in remount, or acquiring it explicitly while in ioctl. The lock in ext3_setup_new_group_blocks was simply wiped out, since this is always called from one of the functions that already holds the lock (and thus, in a safe environment) Signed-off-by: Glauber de Oliveira Costa <go...@br...> -- ===================================== Glauber de Oliveira Costa IBM Linux Technology Center - Brazil go...@br... ===================================== |