Linux 2.6.27.2
Subsystems (10)
We (the -stable team) are announcing the release of the 2.6.27.2 kernel.
It contains a wide range of bugfixes, and all users of the 2.6.27 kernel series are encouraged to upgrade.
I'll also be replying to this message with a copy of the patch between 2.6.27.1 and 2.6.27.2
The updated 2.6.27.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/x86/kernel/alternative.c | 2 arch/x86/kernel/early-quirks.c | 48 ++++++++++++ arch/x86/kernel/io_apic_32.c | 3 arch/x86/mm/ioremap.c | 2 drivers/char/tty_io.c | 2 drivers/net/atl1e/atl1e_main.c | 2 drivers/net/sky2.c | 19 +---- drivers/net/wireless/b43legacy/xmit.c | 2 drivers/net/wireless/libertas/main.c | 20 +++++ fs/cifs/cifsglob.h | 1 fs/cifs/cifssmb.c | 4 + fs/cifs/readdir.c | 128 +++++++++++++++++----------------- fs/xfs/linux-2.6/xfs_buf.c | 3 fs/xfs/linux-2.6/xfs_buf.h | 8 ++ fs/xfs/xfs_log.c | 7 + kernel/sched_rt.c | 8 +- net/mac80211/debugfs_netdev.c | 14 +++ net/rfkill/rfkill.c | 5 - 19 files changed, 182 insertions(+), 98 deletions(-)
Alan Cox (2):
tty: Termios locking - sort out real_tty confusions and lock reads x86, early_ioremap: fix fencepost error
Andreas Herrmann (1):
x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC
Christoph Hellwig (1):
Fix barrier fail detection in XFS
Dan Williams (1):
libertas: clear current command on card removal
Dario Faggioli (1):
sched_rt.c: resch needed in rt_rq_enqueue() for the root rt_rq
Greg Kroah-Hartman (1):
Linux 2.6.27.2
Henrique de Moraes Holschuh (1):
rfkill: update LEDs for all state changes
Johannes Berg (1):
mac80211: fix two issues in debugfs
Larry Finger (1):
b43legacy: Fix failure in rate-adjustment mechanism
Matthew Wilcox (1):
netdrvr: atl1e: Don't take the mdio_lock in atl1e_probe
Rafael J. Wysocki (1):
sky2: Fix WOL regression
Stefan Bader (1):
x86: Reserve FIRST_DEVICE_VECTOR in used_vectors bitmap.
Steve French (1):
CIFS: make sure we have the right resume info before calling CIFSFindNext
Thomas Gleixner (1):
x86: improve UP kernel when CPU-hotplug and SMP is enabled
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 27 -EXTRAVERSION = .1 +EXTRAVERSION = .2 NAME = Rotary Wombat # *DOCUMENTATION*
arch/x86/kernel/alternative.c +1 -1
@@ -444,7 +444,7 @@ void __init alternative_instructions(void) _text, _etext);/* Only switch to UP mode if we don't immediately boot others */ -if (num_possible_cpus () ==1 || setup_max_cpus <=1 ) +if (num_present_cpus () ==1 || setup_max_cpus <=1 ) alternatives_smp_switch(0); }#endif
arch/x86/kernel/early-quirks.c +48 -0
60 lines not on this page · raw message
arch/x86/kernel/io_apic_32.c +3 -0
@@ -2314,6 +2314,9 @@ void __init setup_IO_APIC(void)for (i = first_system_vector; i <NR_VECTORS ; i++)set_bit (i, used_vectors); +/* Mark FIRST_DEVICE_VECTOR which is assigned to IRQ0 as used. */ +set_bit (FIRST_DEVICE_VECTOR , used_vectors); +enable_IO_APIC (); io_apic_irqs = ~PIC_IRQS ;
arch/x86/mm/ioremap.c +1 -1
@@ -595,7 +595,7 @@ void __init *early_ioremap(unsigned long phys_addr, unsigned long size)*/ offset = phys_addr & ~PAGE_MASK ; phys_addr &=PAGE_MASK ; - size =PAGE_ALIGN (last_addr) - phys_addr; + size =PAGE_ALIGN (last_addr +1 ) - phys_addr;/* * Mappings have to fit in the FIX_BTMAP area.
drivers/char/tty_io.c +1 -1
@@ -2996,7 +2996,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)case TIOCSTI :return tiocsti (tty, p);case TIOCGWINSZ : -return tiocgwinsz (tty, p); +return tiocgwinsz (real_tty, p);case TIOCSWINSZ :return tiocswinsz (tty, real_tty, p);case TIOCCONS :
drivers/net/atl1e/atl1e_main.c +0 -2
@@ -2390,9 +2390,7 @@ static int __devinit atl1e_probe(struct pci_dev *pdev, }/* Init GPHY as early as possible due to power saving issue */ -spin_lock (&adapter->mdio_lock);atl1e_phy_init (&adapter->hw); -spin_unlock (&adapter->mdio_lock);/* reset the controller to * put the device in a known good starting state */ err =atl1e_reset_hw (&adapter->hw);
drivers/net/sky2.c +5 -14
@@ -3034,7 +3034,8 @@ static int sky2_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)struct sky2_port *sky2 =netdev_priv (dev);struct sky2_hw *hw = sky2->hw; -if (wol->wolopts & ~sky2_wol_supported (sky2->hw)) +if ((wol->wolopts & ~sky2_wol_supported (sky2->hw)) + || !device_can_wakeup (&hw->pdev->dev))return -EOPNOTSUPP ; sky2->wol = wol->wolopts;
@@ -3045,6 +3046,8 @@ static int sky2_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)sky2_write32 (hw,B0_CTST , sky2->wol ?Y2_HW_WOL_ON :Y2_HW_WOL_OFF ); +device_set_wakeup_enable (&hw->pdev->dev, sky2->wol); +if (!netif_running (dev))sky2_wol_init (sky2);return 0 ;
@@ -4166,18 +4169,6 @@ static int __devinit sky2_test_msi(struct sky2_hw *hw)return err; } -static int __devinit pci_wake_enabled (struct pci_dev *dev) -{ -int pm =pci_find_capability (dev,PCI_CAP_ID_PM ); -u16 value; - -if (!pm) -return 0 ; -if (pci_read_config_word (dev, pm +PCI_PM_CTRL , &value)) -return 0 ; -return value &PCI_PM_CTRL_PME_ENABLE ; -} -/* This driver supports yukon2 chipset only */ static const char *sky2_name (u8 chipid,char *buf,int sz) {
@@ -4238,7 +4229,7 @@ static int __devinit sky2_probe(struct pci_dev *pdev, } } - wol_default =pci_wake_enabled (pdev) ?WAKE_MAGIC :0 ; + wol_default =device_may_wakeup (&pdev->dev) ?WAKE_MAGIC :0 ; err = -ENOMEM ; hw =kzalloc (sizeof (*hw),GFP_KERNEL );
drivers/net/wireless/b43legacy/xmit.c +1 -1
@@ -626,7 +626,7 @@ void b43legacy_handle_hwtxstatus(struct b43legacy_wldev *dev, tmp = hw->count; status.frame_count = (tmp >>4 ); status.rts_count = (tmp &0x0F ); - tmp = hw->flags; + tmp = hw->flags <<1 ; status.supp_reason = ((tmp &0x1C ) >>2 ); status.pm_indicated = !!(tmp &0x80 ); status.intermediate = !!(tmp &0x40 );
drivers/net/wireless/libertas/main.c +19 -1
@@ -1196,7 +1196,13 @@ void lbs_remove_card(struct lbs_private *priv)cancel_delayed_work_sync (&priv->scan_work);cancel_delayed_work_sync (&priv->assoc_work);cancel_work_sync (&priv->mcast_work); + +/* worker thread destruction blocks on the in-flight command which +* should have been cleared already in lbs_stop_card(). +*/ +lbs_deb_main ("destroying worker thread\n" );destroy_workqueue (priv->work_thread); +lbs_deb_main ("done destroying worker thread\n" );if (priv->psmode ==LBS802_11POWERMODEMAX_PSP ) { priv->psmode =LBS802_11POWERMODECAM ;
@@ -1314,14 +1320,26 @@ void lbs_stop_card(struct lbs_private *priv)device_remove_file (&dev->dev, &dev_attr_lbs_rtap); } -/* Flush pending command nodes */ +/* Delete the timeout of the currently processing command */ del_timer_sync (&priv->command_timer); + +/* Flush pending command nodes */ spin_lock_irqsave (&priv->driver_lock, flags); +lbs_deb_main ("clearing pending commands\n" );list_for_each_entry (cmdnode, &priv->cmdpendingq, list) { cmdnode->result = -ENOENT ; cmdnode->cmdwaitqwoken =1 ;wake_up_interruptible (&cmdnode->cmdwait_q); } + +/* Flush the command the card is currently processing */ +if (priv->cur_cmd) { +lbs_deb_main ("clearing current command\n" ); + priv->cur_cmd->result = -ENOENT ; + priv->cur_cmd->cmdwaitqwoken =1 ; +wake_up_interruptible (&priv->cur_cmd->cmdwait_q); + } +lbs_deb_main ("done clearing commands\n" );spin_unlock_irqrestore (&priv->driver_lock, flags);unregister_netdev (dev);
fs/cifs/cifsglob.h +1 -0
@@ -309,6 +309,7 @@ struct cifs_search_info {__u32 resume_key;char *ntwrk_buf_start;char *srch_entries_start; +char *last_entry;char *presume_name;unsigned int resume_name_len; bool endOfSearch:1;
fs/cifs/cifssmb.c +4 -0
@@ -3636,6 +3636,8 @@ findFirstRetry:le16_to_cpu (parms->SearchCount); psrch_inf->index_of_last_entry =2 /* skip . and .. */ + psrch_inf->entries_in_buffer; + psrch_inf->last_entry = psrch_inf->srch_entries_start + +le16_to_cpu (parms->LastNameOffset); *pnetfid = parms->SearchHandle; }else {cifs_buf_release (pSMB);
@@ -3751,6 +3753,8 @@ int CIFSFindNext(const int xid, struct cifsTconInfo *tcon,le16_to_cpu (parms->SearchCount); psrch_inf->index_of_last_entry += psrch_inf->entries_in_buffer; + psrch_inf->last_entry = psrch_inf->srch_entries_start + +le16_to_cpu (parms->LastNameOffset);/* cFYI(1,("fnxt2 entries in buf %d index_of_last %d", psrch_inf->entries_in_buffer, psrch_inf->index_of_last_entry)); */
fs/cifs/readdir.c +65 -63
146 lines not on this page · raw message
fs/xfs/linux-2.6/xfs_buf.c +2 -1
@@ -1001,12 +1001,13 @@ xfs_buf_iodone_work(* We can get an EOPNOTSUPP to ordered writes. Here we clear the * ordered flag and reissue them. Because we can't tell the higher * layers directly that they should not issue ordered I/O anymore, they -* need to check if the ordered flag was cleared during I/O completion. +* need to check if the _XFS_BARRIER_FAILED flag was set during I/O completion. */ if ((bp->b_error ==EOPNOTSUPP ) && (bp->b_flags & (XBF_ORDERED |XBF_ASYNC )) == (XBF_ORDERED |XBF_ASYNC )) {XB_TRACE (bp,"ordered_retry" , bp->b_iodone); bp->b_flags &= ~XBF_ORDERED ; + bp->b_flags |= _XFS_BARRIER_FAILED;xfs_buf_iorequest (bp); }else if (bp->b_iodone) (*(bp->b_iodone))(bp);
fs/xfs/linux-2.6/xfs_buf.h +8 -0
@@ -85,6 +85,14 @@ typedef enum {* modifications being lost. */ _XBF_PAGE_LOCKED = (1 <<22 ), + +/* +* If we try a barrier write, but it fails we have to communicate +* this to the upper layers. Unfortunately b_error gets overwritten +* when the buffer is re-issued so we have to add another flag to +* keep this information. +*/ + _XFS_BARRIER_FAILED = (1 <<23 ), } xfs_buf_flags_t; typedef enum {
fs/xfs/xfs_log.c +4 -3
@@ -1033,11 +1033,12 @@ xlog_iodone(xfs_buf_t *bp) l = iclog->ic_log;/* -* If the ordered flag has been removed by a lower -* layer, it means the underlyin device no longer supports +* If the _XFS_BARRIER_FAILED flag was set by a lower +* layer, it means the underlying device no longer supports * barrier I/O. Warn loudly and turn off barriers. */ -if ((l->l_mp->m_flags &XFS_MOUNT_BARRIER ) && !XFS_BUF_ISORDERED (bp)) { +if (bp->b_flags & _XFS_BARRIER_FAILED) { + bp->b_flags &= ~_XFS_BARRIER_FAILED; l->l_mp->m_flags &= ~XFS_MOUNT_BARRIER ;xfs_fs_cmn_err (CE_WARN , l->l_mp, "xlog_iodone: Barriers are no longer supported"
kernel/sched_rt.c +4 -4
@@ -102,12 +102,12 @@ static void dequeue_rt_entity(struct sched_rt_entity *rt_se);static void sched_rt_rq_enqueue (struct rt_rq *rt_rq) { +struct task_struct *curr =rq_of_rt_rq (rt_rq)->curr;struct sched_rt_entity *rt_se = rt_rq->rt_se; -if (rt_se && !on_rt_rq (rt_se) && rt_rq->rt_nr_running) { -struct task_struct *curr =rq_of_rt_rq (rt_rq)->curr; - -enqueue_rt_entity (rt_se); +if (rt_rq->rt_nr_running) { +if (rt_se && !on_rt_rq (rt_se)) +enqueue_rt_entity (rt_se);if (rt_rq->highest_prio < curr->prio)resched_task (curr); }
net/mac80211/debugfs_netdev.c +12 -2
@@ -537,6 +537,7 @@ static int netdev_notify(struct notifier_block *nb, {struct net_device *dev = ndev;struct dentry *dir; +struct ieee80211_local *local;struct ieee80211_sub_if_data *sdata;char buf[10 +IFNAMSIZ ];
@@ -549,10 +550,19 @@ static int netdev_notify(struct notifier_block *nb,if (dev->ieee80211_ptr->wiphy->privid != mac80211_wiphy_privid)return 0 ; - sdata =IEEE80211_DEV_TO_SUB_IF (dev); +/* +* Do not use IEEE80211_DEV_TO_SUB_IF because that +* BUG_ONs for the master netdev which we need to +* handle here. +*/ + sdata =netdev_priv (dev); -sprintf (buf,"netdev:%s" , dev->name); dir = sdata->debugfsdir; + +if (!dir) +return 0 ; + +sprintf (buf,"netdev:%s" , dev->name);if (!debugfs_rename (dir->d_parent, dir, dir->d_parent, buf))printk (KERN_ERR "mac80211: debugfs: failed to rename debugfs " "dir to %s\n" , buf);
net/rfkill/rfkill.c +2 -3
@@ -117,6 +117,7 @@ static void rfkill_led_trigger_activate(struct led_classdev *led)static void notify_rfkill_state_change (struct rfkill *rfkill) { +rfkill_led_trigger (rfkill, rfkill->state);blocking_notifier_call_chain (&rfkill_notifier_list,RFKILL_STATE_CHANGED , rfkill);
@@ -204,10 +205,8 @@ static int rfkill_toggle_radio(struct rfkill *rfkill, rfkill->state = state; } -if (force || rfkill->state != oldstate) { -rfkill_led_trigger (rfkill, rfkill->state); +if (force || rfkill->state != oldstate)notify_rfkill_state_change (rfkill); - }return retval; }