/openbmc/linux/fs/jfs/ |
H A D | jfs_txnmgr.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
H A D | jfs_logmgr.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/arch/sh/kernel/ |
H A D | entry-common.S | diff 6330c04bb455e10eb6cc6d2552a593af54c6dd96 Tue Jan 10 01:30:37 CST 2012 Paul Mundt <lethal@linux-sh.org> sh: Ensure IRQs are enabled across do_notify_resume().
do_notify_resume() can trigger the freezer via the try_to_freeze() path (both explicitly through a redundant call in do_signal() or via get_signal_to_deliver()). That IRQs were disabled across this callsite became apparent with the might_sleep() introduction in try_to_freeze() by Tejun in a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6, resulting in:
BUG: sleeping function called from invalid context at include/linux/freezer.h:45 in_atomic(): 0, irqs_disabled(): 1, pid: 819, name: ntpd no locks held by ntpd/819. Stack: (0x9c81be80 to 0x9c81c000) ...
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
|
/openbmc/linux/kernel/ |
H A D | freezer.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/include/linux/ |
H A D | freezer.h | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/fs/btrfs/ |
H A D | async-thread.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
H A D | disk-io.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/fs/gfs2/ |
H A D | log.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
H A D | quota.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/fs/nilfs2/ |
H A D | segment.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/fs/jbd2/ |
H A D | journal.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_buf.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|
/openbmc/linux/fs/ext4/ |
H A D | super.c | diff a0acae0e886d44bd5ce6d2f173c1ace0fcf0d9f6 Mon Nov 21 14:32:22 CST 2011 Tejun Heo <tj@kernel.org> freezer: unexport refrigerator() and update try_to_freeze() slightly
There is no reason to export two functions for entering the refrigerator. Calling refrigerator() instead of try_to_freeze() doesn't save anything noticeable or removes any race condition.
* Rename refrigerator() to __refrigerator() and make it return bool indicating whether it scheduled out for freezing.
* Update try_to_freeze() to return bool and relay the return value of __refrigerator() if freezing().
* Convert all refrigerator() users to try_to_freeze().
* Update documentation accordingly.
* While at it, add might_sleep() to try_to_freeze().
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Samuel Ortiz <samuel@sortiz.org> Cc: Chris Mason <chris.mason@oracle.com> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jan Kara <jack@suse.cz> Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp> Cc: Christoph Hellwig <hch@infradead.org>
|