summaryrefslogtreecommitdiff
path: root/chunk-recover.c
diff options
context:
space:
mode:
authorRakesh Pandit <rakesh@tuxera.com>2014-03-25 16:47:07 +0200
committerDavid Sterba <dsterba@suse.cz>2014-04-22 14:33:40 +0200
commit5d889503552d9cccc8a7df8fac8804a1b0d773a4 (patch)
tree09fd824cd9d0964a02f99bc517fb984bc7999346 /chunk-recover.c
parent08255d534200ed4e39291332d35db82b4668091b (diff)
Btrfs-progs: scrub: disable thread cancelability during mutex locks
scrub_progress_cycle thread runs in asynchronous type but locks mutex while reading shared data. This patch disables cancelability for a brief time while locks are on so as to make sure they are unlocked before thread is canceled. scrub_write_progress gets called from scrub_progress_cycle in asynchronous thread but cancelability is disabled after mutex is locked. This patch moves the call to set cancelability type before mutex lock and makes corresponding changes to labels for error handling. Signed-off-by: Rakesh Pandit <rakesh@tuxera.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'chunk-recover.c')
0 files changed, 0 insertions, 0 deletions