From: Linus Torvalds Date: Mon, 3 Dec 2012 18:53:25 +0000 (-0800) Subject: Merge branch 'block-dev' X-Git-Tag: Ubuntu-snapdragon-4.4.0-1029.32~12000 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d3594ea2b343fbbabaaebeb4ce4e1f29e88ab6b3;p=mirror_ubuntu-zesty-kernel.git Merge branch 'block-dev' Merge 'block-dev' branch. I was going to just mark everything here for stable and leave it to the 3.8 merge window, but having decided on doing another -rc, I migth as well merge it now. This removes the bd_block_size_semaphore semaphore that was added in this release to fix a race condition between block size changes and block IO, and replaces it with atomicity guaratees in fs/buffer.c instead, along with simplifying fs/block-dev.c. This removes more lines than it adds, makes the code generally simpler, and avoids the latency/rt issues that the block size semaphore introduced for mount. I'm not happy with the timing, but it wouldn't be much better doing this during the merge window and then having some delayed back-port of it into stable. * block-dev: blkdev_max_block: make private to fs/buffer.c direct-io: don't read inode->i_blkbits multiple times blockdev: remove bd_block_size_semaphore again fs/buffer.c: make block-size be per-page and protected by the page lock --- d3594ea2b343fbbabaaebeb4ce4e1f29e88ab6b3