From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: mount stuck, khubd blocked Date: Mon, 23 Jul 2012 15:22:19 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dima Tisnek , Alexander Viro , Jens Axboe , , USB list , , Kernel development list To: Alan Stern Return-path: In-Reply-To: (Alan Stern's message of "Mon, 23 Jul 2012 15:07:24 -0400 (EDT)") Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Alan Stern writes: > On Wed, 20 Jun 2012, Jeff Moyer wrote: > >> Alan Stern writes: >> >> > On Tue, 19 Jun 2012, Dima Tisnek wrote: >> > >> >> I made a microsd flash with 2 partitions, sdb1 is data partition, and >> >> sdb2 is a sentinel partition, 1 block in size. >> >> >> >> I attached the usb-microsd reader with that card in it and by mistake >> >> tried to mount the sentinel partition, I ran: >> >> mount /dev/sdb2 /mnt/flash/ >> >> >> >> mount got stuck, I was not able to kill or strace it, I pulled the usb >> >> reader from the port, mount was still stuck, here's the dmesg log: >> >> Hi, Dima, >> >> Could you try the following patch? >> >> Thanks, >> Jeff >> >> diff --git a/fs/buffer.c b/fs/buffer.c >> index 838a9cf..769b30b 100644 >> --- a/fs/buffer.c >> +++ b/fs/buffer.c >> @@ -930,7 +930,7 @@ init_page_buffers(struct page *page, struct block_device *bdev, >> bh->b_blocknr = block; >> if (uptodate) >> set_buffer_uptodate(bh); >> - if (block < end_block) >> + if (block <= end_block) >> set_buffer_mapped(bh); >> } >> block++; > > Jeff, does this also fix Bugzilla #43269? First, this patch is wrong. I posted another version later on that got merged for 3.5. As for bug 43269, it does not look like the same symptoms, so I would not expect the patches I posted to resolve that issue. Sorry. Cheers, Jeff