From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: virt_blk BUG: sleeping function called from invalid context Date: Mon, 30 Jun 2014 16:17:41 -0400 Message-ID: <20140630201741.GA20853@htj.dyndns.org> References: <20140629082637.GA23942@redhat.com> <20140629193222.GA7030@lst.de> <20140629204710.GB11100@redhat.com> <53B07D48.60003@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <53B07D48.60003@kernel.dk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Jens Axboe Cc: Josh Boyer , "Michael S. Tsirkin" , John McCutchan , Greg Kroah-Hartman , "Linux-Kernel@Vger. Kernel. Org" , virtualization@lists.linux-foundation.org, Robert Love , Eric Paris , Brian Lane , Christoph Hellwig List-Id: virtualization@lists.linuxfoundation.org On Sun, Jun 29, 2014 at 02:55:36PM -0600, Jens Axboe wrote: > > commit d911d98748018f7c8facc035ba39c30f5cce6f9c > > Author: Tejun Heo > > Date: Wed Apr 9 11:07:31 2014 -0400 > > > > kernfs: make kernfs_notify() trigger inotify events too > > > > Tejun, what do you think? > > > > Josh, Brian, could you try reverting that commit to see if it helps? > > That definitely be a bug. If you need to block off ->bi_end_io(), just > must punt to a worker thread. Ugh... didn't realize we had users triggering sysfs notifications from an atomic context. fsnotify support requires sleepable context. Guess I'll have to punt it to a work item. :( Thanks. -- tejun