linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bug] label cli hangs until balance is completed
@ 2013-07-17  8:29 Anand Jain
  2013-07-17  9:09 ` Stefan Behrens
  2013-07-18 11:18 ` [PATCH] btrfs: fix get set label blocking against balance Anand Jain
  0 siblings, 2 replies; 7+ messages in thread
From: Anand Jain @ 2013-07-17  8:29 UTC (permalink / raw)
  To: linux-btrfs



  'btrfs fi label /btrfs' will hang until balance is completed.
  (and probably even set label would hang). This is because we
  are trying to hold volume_mutex lock which balance will hold
  during its tenure.

-------
static int btrfs_ioctl_get_fslabel(struct file *file, void __user *arg)
::
         mutex_lock(&root->fs_info->volume_mutex);
         ret = copy_to_user(arg, label, len);
         mutex_unlock(&root->fs_info->volume_mutex);
--------

  I doubt if get label would need such a heavy weight lock?
  Do we have any other lock which could fit better here ?
  Any comments ?

Thanks,  Anand



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-07-19  9:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-17  8:29 [bug] label cli hangs until balance is completed Anand Jain
2013-07-17  9:09 ` Stefan Behrens
2013-07-17 17:49   ` Zach Brown
2013-07-18 11:18 ` [PATCH] btrfs: fix get set label blocking against balance Anand Jain
2013-07-18 12:47   ` Stefan Behrens
2013-07-19  9:31     ` Anand Jain
2013-07-19  9:39   ` [PATCH v2] " Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).